public ShopifiesController(IOptions <ShopifyConfig> shopifyConfigAccessor, IShopifyService shopifyService, ILogger <ShopifiesController> logger, IHostingEnvironment env) { _shopifyConfig = shopifyConfigAccessor?.Value ?? throw new ArgumentNullException(nameof(shopifyConfigAccessor)); _shopifyService = shopifyService ?? throw new ArgumentNullException(nameof(shopifyService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _env = env; }
public ShopifyService(IOptions <ShopifyConfig> shopifyConfigAccessor, ILogger <ShopifyService> logger) { _shopifyConfig = shopifyConfigAccessor?.Value ?? throw new ArgumentNullException(nameof(shopifyConfigAccessor)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }