public static void ReSchedule(string guid) { var task = JobRepository.GetByGuid(guid); JobRepository.SetTaskOneTimeOnly(guid, task.Alias, task.Data); JobScheduler.LaunchJob <JobList.CommandJob>(guid); }
public static void Schedule(string jobName, string command) { var guid = Guid.NewGuid().ToString(); JobRepository.SetTaskOneTimeOnly(guid, jobName, command); Thread.Sleep(20); JobScheduler.LaunchJob <JobList.CommandJob>(guid); }
public static void ScheduleWGuid(string guid, string command) { JobRepository.SetTaskOneTimeOnly(guid, command); Thread.Sleep(20); JobScheduler.LaunchJob <JobList.CommandJob>(guid); }