public AutomationScheduler(IHealthCheckPlugin check, bool enabled = true) { Check = check; Enabled = enabled; Status = Status.For(Identity.Name) .StateIsSuccess(); }
public HealthCheckIntervalScheduler(IHealthCheckPlugin check, HealthCheckIntervalSchedulerConfig config) : base(config) { HealthCheck = check; InternalIdentity = new PluginDescriptor { TypeId = check.Identity.TypeId, Description = check.Identity.Description, Name = check.Identity.Name }; }
public HealthCheckIntervalScheduler(IHealthCheckPlugin check, HealthCheckIntervalSchedulerConfig config) : base(config) { myHealthCheck = check; myIdentity = new PluginDescriptor { TypeId = check.Identity.TypeId, Description = check.Identity.Description, Name = check.Identity.Name, ScheduleDescription = string.Format("Every {0} Minutes", myInterval.TotalMinutes) }; }
public HealthCheckTwentyFourSevenScheduler(IHealthCheckPlugin check, HealthCheckTwentyFourSevenSchedulerConfig config) : base(check, new HealthCheckIntervalSchedulerConfig { IntervalInSeconds = config.IntervalInSeconds }) { InternalIdentity = new PluginDescriptor { TypeId = check.Identity.TypeId, Description = check.Identity.Description, Name = check.Identity.Name }; Timer = new TwentyFourSevenTimer(config); }