/// <summary>
 /// Initializes a new marketplace group, and sets the MWS endpoint of this group to the MWS endpoint of the Marketplace provided as parameter.
 /// </summary>
 public MwsMarketplaceGroup(MwsMarketplace marketplace)
 {
     MwsEndpoint = marketplace.MwsEndpoint ?? throw new InvalidOperationException(
                             $"Cannot initialize marketplace group because the MWS access endpoint is not set on for the provided marketplace");
     _mwsMarketplaces = new List <MwsMarketplace> {
         marketplace
     };
 }
Exemple #2
0
 private MwsMarketplace(string name, string countryCode, string id, MwsEndpoint mwsEndpoint)
 => (Name, CountryCode, Id, MwsEndpoint) = (name, countryCode, id, mwsEndpoint);