public StripeService(IHttpClientFactory http, IElasticClient client, IOptionsMonitor <StripeServiceOptions> options, ILinkGenerator link, IWriteControl writeControl, IUserService users) { _stripe = new StripeClient(options.CurrentValue.SecretKey, null, new SystemNetHttpClient(http.CreateClient(nameof(StripeClient)))); _client = client; _options = options; _link = link; _writeControl = writeControl; _users = users; }
protected ScraperBase(IServiceProvider services, IOptionsMonitor <ScraperOptions> options, ILogger <ScraperBase <TState> > logger) { Services = services; _locker = services.GetService <IResourceLocker>(); _storage = services.GetService <IStorage>(); _writeControl = services.GetService <IWriteControl>(); _options = options; _logger = logger; }
public MigrationManager(IServiceProvider services, IElasticClient elastic, IRedisClient redis, IResourceLocker locker, IOptionsMonitor <ElasticOptions> options, IWriteControl writeControl, ILogger <MigrationManager> logger) { _services = services; _elastic = elastic; _redis = redis; _locker = locker; _options = options; _writeControl = writeControl; _logger = logger; }