コード例 #1
0
        public TradingPlatform(StrategySettingsFactory settingsFactory
                               , StrategyFactory strategyFactory
                               , PlatformJobsRepository jobRepo
                               , PlatformLogService PlatformLogService
                               )
        {
            this.settingsFactory    = settingsFactory;
            this.strategyFactory    = strategyFactory;
            this.jobRepo            = jobRepo;
            this.PlatformLogService = PlatformLogService;
            this.strategyTokens     = new Dictionary <string, CancellationTokenSource>();

            this.userId = userId;


            this.strategies = new List <IStrategy>();
        }
コード例 #2
0
 public PlatformLiveLogsController(PlatformJobsRepository jobRepo
                                   , PlatformLogsRepository jobLogsRepo
                                   , StrategyRunsRepository runsRepo
                                   , StrategyLogsRepository runsLogRepo
                                   , ExchangeLogsRepository exchangeLogsRepo
                                   , TradingJobServiceFactory jobsFactory
                                   , TradingPlatform TradingPlatform
                                   , ILoggingService log)
 {
     this.jobRepo          = jobRepo;
     this.jobLogsRepo      = jobLogsRepo;
     this.runsRepo         = runsRepo;
     this.runsLogRepo      = runsLogRepo;
     this.exchangeLogsRepo = exchangeLogsRepo;
     this.jobsFactory      = jobsFactory;
     this.log             = log;
     this.TradingPlatform = TradingPlatform;
 }