Exemplo n.º 1
0
        void UnscheduleJob(JobDetailTriggerInfo jobTriggerInfo)
        {
            var jobGroup = jobTriggerInfo is JobGroupInfo ? ((JobGroupInfo)jobTriggerInfo).Group : null;

            if (!string.IsNullOrEmpty(jobTriggerInfo.TriggerName))
            {
                Scheduler.UnscheduleJob(jobTriggerInfo.TriggerName, jobTriggerInfo.JobType, jobTriggerInfo.JobName, jobGroup);
            }
        }
Exemplo n.º 2
0
 void UnscheduleJob(JobDetailTriggerInfo jobTriggerInfo) {
     var jobGroup = jobTriggerInfo is JobGroupInfo ? ((JobGroupInfo)jobTriggerInfo).Group : null;
     if (!string.IsNullOrEmpty(jobTriggerInfo.TriggerName))
         Scheduler.UnscheduleJob(jobTriggerInfo.TriggerName, jobTriggerInfo.JobType, jobTriggerInfo.JobName, jobGroup);
 }