public void Start() { loggingService.Info($"Start Health Check service..."); healthCheckTimedTask = new HealthCheckTimedTask(loggingService, notificationService, this, Application.Resolve <ICoreService>(), Application.Resolve <ITradingService>()); healthCheckTimedTask.Interval = Application.Resolve <ICoreService>().Config.HealthCheckInterval * 1000 / Application.Speed; healthCheckTimedTask.StartDelay = Constants.TimedTasks.StandardDelay; Application.Resolve <ICoreService>().AddTask(nameof(HealthCheckTimedTask), healthCheckTimedTask); loggingService.Info("Health Check service started"); }
public void Start() { loggingService.Info($"Start Health Check service..."); healthCheckTimedTask = tasksService.AddTask( name: nameof(HealthCheckTimedTask), task: new HealthCheckTimedTask(loggingService, notificationService, this, Application.Resolve <ICoreService>(), Application.Resolve <ITradingService>()), interval: Application.Resolve <ICoreService>().Config.HealthCheckInterval * 1000 / Application.Speed, startDelay: Constants.TaskDelays.HighDelay, startTask: false, runNow: false, skipIteration: 0); loggingService.Info("Health Check service started"); }