Scheduling(Schedule schedule, IBus bus)
        {
            #region ScheduleTask
            // 'Schedule' is an instance class that can be resolved from the container.
            // To send a message every 5 minutes
            schedule.Every(TimeSpan.FromMinutes(5), () => bus.Send(new CallLegacySystem()));

            // Name a schedule task and invoke it every 5 minutes
            schedule.Every(TimeSpan.FromMinutes(5), "MyCustomTask", SomeCustomMethod);

            #endregion
        }
Example #2
0
 public ScheduleMyTasks(IBus bus, Schedule schedule)
 {
     this.bus = bus;
     this.schedule = schedule;
 }
 public ScheduleSnapshot(Schedule schedule, IBus bus)
 {
     this.schedule = schedule;
     this.bus = bus;
 }