示例#1
0
        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));
        }
示例#2
0
        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;
        }
示例#3
0
        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;
        }