public static void Init() { if (initalized) { return; } _appLicenseInformation = new LicenseInformation { ExpirationDate = DateTimeOffset.Now, IsActive = true, IsTrial = false, ProductLicenses = new Dictionary <string, ProductLicense>() }; StateInformation = new MockReceiptState(); initalized = true; string mocklist_url = "http://iap.azurewebsites.net/GetProductsByAppID.php?id=" + CurrentApp.AppId; WebClient client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(LoadListComplete); client.DownloadStringAsync(new Uri(mocklist_url)); }
public static void Init() { if (initalized) return; _appLicenseInformation = new LicenseInformation { ExpirationDate = DateTimeOffset.Now, IsActive = true, IsTrial = false, ProductLicenses = new Dictionary<string, ProductLicense>() }; StateInformation = new MockReceiptState(); initalized = true; }
public static void Init() { if (initalized) { return; } _appLicenseInformation = new LicenseInformation { ExpirationDate = DateTimeOffset.Now, IsActive = true, IsTrial = false, ProductLicenses = new Dictionary <string, ProductLicense>() }; StateInformation = new MockReceiptState(); initalized = true; }