Beispiel #1
0
        public void Start()
        {
            loggingService.Info("Start TradingViewCryptoSignalReceiver...");

            tradingViewCryptoSignalPollingTimedTask          = new TradingViewCryptoSignalPollingTimedTask(loggingService, healthCheckService, tradingService, this);
            tradingViewCryptoSignalPollingTimedTask.Interval = Config.PollingInterval * 1000 / Application.Speed;
            tradingViewCryptoSignalPollingTimedTask.Run();
            Application.Resolve <ICoreService>().AddTask($"{nameof(TradingViewCryptoSignalPollingTimedTask)} [{SignalName}]", tradingViewCryptoSignalPollingTimedTask);

            loggingService.Info("TradingViewCryptoSignalReceiver started");
        }
        public void Start()
        {
            loggingService.Info("Start TradingViewCryptoSignalReceiver...");

            tradingViewCryptoSignalPollingTimedTask = tasksService.AddTask(
                name: $"{nameof(TradingViewCryptoSignalPollingTimedTask)} [{SignalName}]",
                task: new TradingViewCryptoSignalPollingTimedTask(loggingService, healthCheckService, tradingService, this),
                interval: Config.PollingInterval * 1000 / Application.Speed,
                startDelay: Constants.TaskDelays.ZeroDelay,
                startTask: false,
                runNow: true,
                skipIteration: 0);

            loggingService.Info("TradingViewCryptoSignalReceiver started");
        }