C# 클래스 PhotoSharingApp.Universal.Facades.LicensingFacade

Encapsulates In-app purchases.
상속: ILicensingFacade
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
LicensingFacade ( IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler ) : System
PurchaseGold ( string productId ) : System.Threading.Tasks.Task

Purchases Gold with the given productId.

Please see InAppPurchases for available IAPs.

비공개 메소드들

메소드 설명
DoFulfillment ( ) : System.Threading.Tasks.Task

Does fulfillment of all available products.

Fulfillment consists of two steps: 1. Notifying PhotoSharingApp servers of purchased IAP. 2. In case of a consumable, we want to fulfill that IAP in the store so that users are able to re-purchase.

TryFulfillGold ( ProductLicense productLicense ) : System.Threading.Tasks.Task

Tries to fulfill a Gold IAP with the given amount.

메소드 상세

LicensingFacade() 공개 메소드

public LicensingFacade ( IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler ) : System
photoService IPhotoService
authEnforcementHandler IAuthEnforcementHandler
리턴 System

PurchaseGold() 공개 메소드

Purchases Gold with the given productId.
Please see InAppPurchases for available IAPs.
Thrown when an error occurs during purchase.
public PurchaseGold ( string productId ) : System.Threading.Tasks.Task
productId string The productId to purchase.
리턴 System.Threading.Tasks.Task