Esempio n. 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));
        }
Esempio n. 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;
        }
Esempio n. 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;
        }