public ShopifyClient(ShopifyClientConfiguration configuration) : this() { if (null == configuration) { return; } if (string.IsNullOrWhiteSpace(configuration.ShopDomain)) { throw new ArgumentNullException("configuration.ShopDomain"); } if (!configuration.ShopDomain.IsValidShopifyDomain()) { throw new ArgumentException("ShopDomain property does not contain a valid shopify domain name ending with *.myshopify.com"); } if (string.IsNullOrWhiteSpace(configuration.AccessToken)) { throw new ArgumentNullException("configuration.AccessToken"); } this.Configuration = configuration; }
public ShopifyClient(ShopifyClientConfiguration configuration) : this() { if (null == configuration) { return; } if (string.IsNullOrWhiteSpace(configuration.ShopDomain)) { throw new ArgumentNullException("configuration.ShopDomain"); } if (!configuration.ShopDomain.IsValidShopifyDomain()) { throw new ArgumentException("ShopDomain property does not contain a valid shopify domain name ending with *.myshopify.com"); } if (string.IsNullOrWhiteSpace(configuration.AccessToken)) { throw new ArgumentNullException("configuration.AccessToken"); } this.Configuration = configuration; }