示例#1
0
 /// <summary>
 /// Executes the job regardless its schedule.
 /// </summary>
 public void Execute()
 {
     JobManager.RunJob(this);
 }
示例#2
0
文件: Registry.cs 项目: wakcie1/Demos
 public Schedule Schedule <T>() where T : IJob
 {
     return(Schedule(JobManager.GetJobAction <T>(), typeof(T).Name));
 }
示例#3
0
 public Schedule AndThen <T>() where T : IJob
 {
     Jobs.Add(JobManager.GetJobAction <T>());
     return(this);
 }