Exemplo n.º 1
0
        public static void ReSchedule(string guid)
        {
            var task = JobRepository.GetByGuid(guid);

            JobRepository.SetTaskOneTimeOnly(guid, task.Alias, task.Data);
            JobScheduler.LaunchJob <JobList.CommandJob>(guid);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public static void ScheduleWGuid(string guid, string command)
 {
     JobRepository.SetTaskOneTimeOnly(guid, command);
     Thread.Sleep(20);
     JobScheduler.LaunchJob <JobList.CommandJob>(guid);
 }