Пример #1
0
        public FlowControl(IOptions <AnymateConfig> anymateConfigOptions, ILogger <FlowControl> logger, IDataGatherer dataGatherer)
        {
            var anymateConfig = anymateConfigOptions.Value;

            _anymateService = new AnymateService(anymateConfig.ClientId, anymateConfig.Secret, anymateConfig.Username, anymateConfig.Password);
            _logger         = logger;
            _dataGatherer   = dataGatherer;
            _processKey     = anymateConfig.ProcessKey;
        }
Пример #2
0
        public FlowControl(IOptions <AnymateConfig> anymateConfigOptions, ILogger <FlowControl> logger, IWorkerFactory workerFactory)
        {
            var anymateConfig = anymateConfigOptions.Value;

            _anymateService = new AnymateService(anymateConfig.ClientId, anymateConfig.Secret, anymateConfig.Username, anymateConfig.Password);
            _logger         = logger;
            _processKey     = anymateConfig.ProcessKey;
            _workerFactory  = workerFactory;
        }