Example #1
0
 /// <summary>
 /// Executes the job regardless its schedule.
 /// </summary>
 public void Execute()
 {
     JobManager.RunJob(this);
 }
Example #2
0
 public Schedule Schedule <T>() where T : IJob
 {
     return(Schedule(JobManager.GetJobAction <T>(), typeof(T).Name));
 }
Example #3
0
 public Schedule AndThen <T>() where T : IJob
 {
     Jobs.Add(JobManager.GetJobAction <T>());
     return(this);
 }