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); }
public static void GetProductInfo(string productName, ProductInfoHandler productInfoCallback, bool isDebug) { #if NETFX_CORE GetProductInfoAsync(productName, productInfoCallback, isDebug); #endif }