private Scheduler GetScheduler(string id, SchedulerType type, double interval) { return(new Scheduler { Id = id, Type = type, Timer = TimerHelper.GetTimer(interval) }); }
public Scheduler New(string id, SchedulerType schedulerType, IntervalType intervalType = IntervalType.Minutely, int interval = 1) { var delayInterval = TimerHelper.Getinterval(intervalType, interval); return(GetScheduler(id, schedulerType, delayInterval)); }
public Scheduler Default(IntervalType type = IntervalType.Minutely, int interval = 1) { var delayInterval = TimerHelper.Getinterval(type, interval); return(GetScheduler(Guid.NewGuid().ToString(), SchedulerType.Parent, delayInterval)); }