示例#1
0
 //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;
 }
示例#2
0
 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;
 }
示例#3
0
 public ShopifyOAuth(IOptions <ShopifyOptions> config)
 {
     this.config = config.Value;
 }
 public DropshipService(IApiService api, IOptions <ShopifyOptions> shopifyConfig)
 {
     this.api           = api;
     this.shopifyConfig = shopifyConfig.Value;
 }