public ImportColdDataService(ICryptoCompareGateway cryptoCompareGateway, CoreDBContext coreDBContext, IMapper mapper, Serilog.ILogger logger ) { _cryptoCompareGateway = cryptoCompareGateway; _coreDBContext = coreDBContext; _mapper = mapper; _logger = logger; }
public SignalService(EmailService emailService, ICryptoCompareGateway cryptoCompareGateway, IConfiguration configuration, IOptions <SignalConfiguration> signalConfiguration) { _connectionString = configuration.GetConnectionString(ContextContstants.ConnectionStringCoreDB); _emailService = emailService; _cryptoCompareGateway = cryptoCompareGateway; _signalConfiguartion = signalConfiguration?.Value; _timer = new Timer(); _timer.Elapsed += OnTimerElapsed; _timer.Interval = 1000 * _signalConfiguartion.Period; //_timer.AutoReset = true; _timer.Start(); }
public ExchangeController(CoreDBContext coreDBContext, IMapper mapper, ICryptoCompareGateway cryptoCompareGateway) { _coreDBContext = coreDBContext; _mapper = mapper; _cryptoCompareGateway = cryptoCompareGateway; }
public CurrencyController(AllCurrencyUseCase allCurrencyUseCase, IAlphaVantageGateway alphaVantageGateway, ICryptoCompareGateway cryptoCompareGateway) { _allCurrencyUseCase = allCurrencyUseCase; _alphaVantageGateway = alphaVantageGateway; _cryptoCompareGateway = cryptoCompareGateway; }
public CryptoCompareGatewayTests() { _gateway = _services.GetService <ICryptoCompareGateway>(); }
public SignalsController(ICryptoCompareGateway cryptoCompareGateway) { _cryptoCompareGateway = cryptoCompareGateway; }