Example #1
0
 protected async static void GetProductInfoAsync(string productName, ProductInfoHandler productInfoCallback, bool isDebug)
 {
     ListingInformation listing;
     if (isDebug)
     {
         listing = await CurrentAppSimulator.LoadListingInformationAsync();
     }
     else
     {
         listing = await CurrentAppSimulator.LoadListingInformationAsync();
     }
     ProductListing product = listing.ProductListings[productName];
     ProductInfo productInfo = GetProductInfoFromProduct(product);
     productInfoCallback(productInfo);
 }
Example #2
0
        public static void GetProductInfo(string productName, ProductInfoHandler productInfoCallback, bool isDebug)
        {
#if NETFX_CORE
            GetProductInfoAsync(productName, productInfoCallback, isDebug);
#endif
        }