public static async Task ReloadSimulatorAsync(StorageFile storageFile) { using (var stream = await storageFile.OpenStreamForReadAsync().ConfigureAwait(false)) { var document = XDocument.Load(stream); _instance = FromXml(document); } }
public static async Task <string> RequestAppPurchaseAsync(bool includeReceipt) { #if DEBUG return(await CurrentAppSimulator.RequestAppPurchaseAsync(includeReceipt)); #else return(await CurrentApp.RequestAppPurchaseAsync(includeReceipt)); #endif }
/// <summary> /// Loads the app's listing information asynchronously. /// </summary> /// <returns></returns> public static async Task <ListingInformation> LoadListingInformationAsync() { #if DEBUG return(ListingInformation.Create(await CurrentAppSimulator.LoadListingInformationAsync())); #else return(ListingInformation.Create(await CurrentApp.LoadListingInformationAsync())); #endif }
public static async Task <string> GetProductReceiptAsync(string productId) { #if DEBUG return(await CurrentAppSimulator.GetProductReceiptAsync(productId)); #else return(await CurrentApp.GetProductReceiptAsync(productId)); #endif }
public static async Task <string> GetAppReceiptAsync() { #if DEBUG return(await CurrentAppSimulator.GetAppReceiptAsync()); #else return(await CurrentApp.GetAppReceiptAsync()); #endif }
/// <summary> /// Reloads and restarts the simulator when provided with a new StorageFile reference /// </summary> /// <param name="storageFile">A new WinStoreAppProxy.xml file with the desired settings</param> public static async Task ReloadSimulatorSettingsAsync(StorageFile storageFile) { await CurrentAppSimulator.ReloadSimulatorAsync(storageFile); }