public CandlesHistoryMigrationController( CandlesMigrationManager candlesMigrationManager, IHistoryProvidersManager historyProvidersManager) { _candlesMigrationManager = candlesMigrationManager; _historyProvidersManager = historyProvidersManager; }
public ShutdownManager( ILogFactory logFactory, ICandlesSubscriber candlesSubscriber, ISnapshotSerializer snapshotSerializer, ICandlesPersistenceQueueSnapshotRepository persistenceQueueSnapshotRepository, ICandlesPersistenceQueue persistenceQueue, ICandlesPersistenceManager persistenceManager, CandlesMigrationManager migrationManager, bool migrationEnabled) { if (logFactory == null) { throw new ArgumentNullException(nameof(logFactory)); } _log = logFactory.CreateLog(this); _candlesSubcriber = candlesSubscriber ?? throw new ArgumentNullException(nameof(candlesSubscriber)); _snapshotSerializer = snapshotSerializer ?? throw new ArgumentNullException(nameof(snapshotSerializer)); _persistenceQueueSnapshotRepository = persistenceQueueSnapshotRepository ?? throw new ArgumentNullException(nameof(persistenceQueueSnapshotRepository)); _persistenceQueue = persistenceQueue ?? throw new ArgumentNullException(nameof(persistenceQueue)); _persistenceManager = persistenceManager ?? throw new ArgumentNullException(nameof(persistenceManager)); _migrationManager = migrationManager ?? throw new ArgumentNullException(nameof(migrationManager)); _migrationEnabled = migrationEnabled; }
public CandlesHistoryMigrationController( CandlesMigrationManager candlesMigrationManager, TradesMigrationManager tradesMigrationManager, CandlesFiltrationManager candlesFiltrationManager, IHistoryProvidersManager historyProvidersManager, TradesMigrationHealthService tradesMigrationHealthService) { _candlesMigrationManager = candlesMigrationManager; _tradesMigrationManager = tradesMigrationManager; _candlesFiltrationManager = candlesFiltrationManager; _historyProvidersManager = historyProvidersManager; _tradesMigrationHealthService = tradesMigrationHealthService; }
public ShutdownManager( ILog log, ICandlesSubscriber candlesSubscriber, ISnapshotSerializer snapshotSerializer, ICandlesPersistenceQueueSnapshotRepository persistenceQueueSnapshotRepository, ICandlesPersistenceQueue persistenceQueue, ICandlesPersistenceManager persistenceManager, CandlesMigrationManager migrationManager) { _log = log.CreateComponentScope(nameof(ShutdownManager)); _candlesSubcriber = candlesSubscriber; _snapshotSerializer = snapshotSerializer; _persistenceQueueSnapshotRepository = persistenceQueueSnapshotRepository; _persistenceQueue = persistenceQueue; _persistenceManager = persistenceManager; _migrationManager = migrationManager; }
public ShutdownManager( ILog log, ICandlesSubscriber candlesSubscriber, ISnapshotSerializer snapshotSerializer, ICandlesPersistenceQueueSnapshotRepository persistenceQueueSnapshotRepository, ICandlesPersistenceQueue persistenceQueue, ICandlesPersistenceManager persistenceManager, CandlesMigrationManager migrationManager, bool migrationEnabled) { if (log == null) { throw new ArgumentNullException(nameof(log)); } _log = log.CreateComponentScope(nameof(ShutdownManager)) ?? throw new InvalidOperationException("Couldn't create a component scope for logging."); _candlesSubcriber = candlesSubscriber ?? throw new ArgumentNullException(nameof(candlesSubscriber)); _snapshotSerializer = snapshotSerializer ?? throw new ArgumentNullException(nameof(snapshotSerializer)); _persistenceQueueSnapshotRepository = persistenceQueueSnapshotRepository ?? throw new ArgumentNullException(nameof(persistenceQueueSnapshotRepository)); _persistenceQueue = persistenceQueue ?? throw new ArgumentNullException(nameof(persistenceQueue)); _persistenceManager = persistenceManager ?? throw new ArgumentNullException(nameof(persistenceManager)); _migrationManager = migrationManager ?? throw new ArgumentNullException(nameof(migrationManager)); _migrationEnabled = migrationEnabled; }