//Setup this class as a Scoped dependency injection and call SetupScope public ShopifyService(IHttpService http, IApplicationCache cache, ShopifyOAuth oauth, OAuthPostgres oauthDb, OAuthService oauthRetriever, IRavenClient raven, IOptions <ShopifyOptions> config) { this.http = http; this.raven = raven; this.config = config.Value; this.oauthDb = oauthDb; this.cache = cache; this.oauthRetriever = oauthRetriever; }
public ShopifyService(IOptions <ShopifyOptions> shopifyOptions, IShopifyStoreService shopifyStoreService, ILogger logger, IHttpContextAccessor httpContextAccessor, INDAShopClient NDAShopClient, ITokenClient tokenClient, INDAAccountClient accountClient, IShopifyChargeStore shopifyChargeStore) { _shopifyStoreService = shopifyStoreService; _logger = logger; _httpContextAccessor = httpContextAccessor; _NDAShopClient = NDAShopClient; _tokenClient = tokenClient; _accountClient = accountClient; _shopifyChargeStore = shopifyChargeStore; _shopifyOptions = shopifyOptions.Value; }
public ShopifyOAuth(IOptions <ShopifyOptions> config) { this.config = config.Value; }
public DropshipService(IApiService api, IOptions <ShopifyOptions> shopifyConfig) { this.api = api; this.shopifyConfig = shopifyConfig.Value; }