Пример #1
0
 public async Task <Marketplace> VerifyMarketplaceExists(string marketplaceID, string devToken)
 {
     try
     {
         return(await _portal.GetMarketplace(marketplaceID, devToken));
     }
     catch (Exception e)
     {
         // the portal API no longer allows us to create a production marketplace outside of portal
         // though its possible to create on sandbox - for consistency sake we'll require its created before seeding
         Console.WriteLine(e.Message);
         throw new Exception("Failed to retrieve marketplace with MarketplaceID. The marketplace must exist before it can be seeded");
     }
 }