public JobModule(
     AssetsSettings assetsSettings,
     ChaosSettings chaosSettings,
     MatchingEngineSettings matchingEngineSettings)
 {
     _assetsSettings = assetsSettings;
     _chaosSettings  = chaosSettings;
     _meSettings     = matchingEngineSettings;
 }
        public ApiModule(IReloadingManager <AppSettings> settings)
        {
            _marketType = settings.CurrentValue.CandlesHistory != null
                ? MarketType.Spot
                : MarketType.Mt;

            _settings = settings.CurrentValue.CandlesHistory ?? settings.CurrentValue.MtCandlesHistory;

            _assetSettings = settings.CurrentValue.Assets;
            _redisSettings = settings.CurrentValue.RedisSettings;
            _candleHistoryAssetConnections = settings.CurrentValue.CandleHistoryAssetConnections != null
                ? settings.Nested(x => x.CandleHistoryAssetConnections)
                : settings.Nested(x => x.MtCandleHistoryAssetConnections);
        }
Beispiel #3
0
 public JobModule(
     MarketType marketType,
     CandlesHistoryWriterSettings settings,
     AssetsSettings assetSettings,
     RedisSettings redisSettings,
     IReloadingManager <Dictionary <string, string> > candleHistoryAssetConnections,
     IReloadingManager <DbSettings> dbSettings,
     ILog log)
 {
     _services      = new ServiceCollection();
     _marketType    = marketType;
     _settings      = settings;
     _assetSettings = assetSettings;
     _redisSettings = redisSettings;
     _candleHistoryAssetConnections = candleHistoryAssetConnections;
     _dbSettings = dbSettings;
     _log        = log;
 }
Beispiel #4
0
 public JobModule(
     MarketType marketType,
     CandlesHistoryWriterSettings settings,
     AssetsSettings assetSettings,
     RedisSettings redisSettings,
     MonitoringServiceClientSettings monitoringServiceClient,
     IReloadingManager <DbSettings> dbSettings,
     CandlesShardRemoteSettings candlesShardRemoteSettings,
     ILog log)
 {
     _services                   = new ServiceCollection();
     _marketType                 = marketType;
     _settings                   = settings;
     _assetSettings              = assetSettings;
     _redisSettings              = redisSettings;
     _monitoringServiceClient    = monitoringServiceClient;
     _dbSettings                 = dbSettings;
     _candlesShardRemoteSettings = candlesShardRemoteSettings;
     _log = log;
 }
Beispiel #5
0
 public JobModule(AssetsSettings assetsSettings, ChaosSettings chaosSettings)
 {
     _assetsSettings = assetsSettings;
     _chaosSettings  = chaosSettings;
 }