Exemplo n.º 1
0
 public ExchangeAccessIntegrationEventService(IEventBus eventBus, ExchangeAccessContext exchangeAccessContext,
                                              Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory)
 {
     _exchangeAccessContext             = exchangeAccessContext ?? throw new ArgumentNullException(nameof(exchangeAccessContext));
     _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _eventLogService = _integrationEventLogServiceFactory(_exchangeAccessContext.Database.GetDbConnection());
 }
Exemplo n.º 2
0
 public CandleChartRepository(ExchangeAccessContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemplo n.º 3
0
 public BalancesController(ExchangeAccessContext context, IBalanceRepository balanceRepository)
 {
     _context           = context;
     _balanceRepository = balanceRepository ?? throw new ArgumentNullException(nameof(balanceRepository));
 }
Exemplo n.º 4
0
 public CandleChartsController(ExchangeAccessContext context, ICandleChartRepository candleChartRepository, IExchangeAccessService exchangeAccessService)
 {
     _context = context;
     _candleChartRepository      = candleChartRepository ?? throw new ArgumentNullException(nameof(candleChartRepository));
     this._exchangeAccessService = exchangeAccessService ?? throw new ArgumentNullException(nameof(exchangeAccessService));
 }
Exemplo n.º 5
0
 public RequestManager(ExchangeAccessContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemplo n.º 6
0
 public MarketsController(ExchangeAccessContext context, IMarketRepository marketRepository, IExchangeAccessService exchangeAccessService)
 {
     _context = context;
     this._marketRepository      = marketRepository ?? throw new ArgumentNullException(nameof(marketRepository));
     this._exchangeAccessService = exchangeAccessService ?? throw new ArgumentNullException(nameof(exchangeAccessService));
 }