Пример #1
0
        public async Task ResumeTriggers(string schedulerName, GroupMatcherDto groupMatcher)
        {
            IScheduler scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            GroupMatcher <TriggerKey> matcher = (groupMatcher ?? new GroupMatcherDto()).GetTriggerGroupMatcher();
            await scheduler.ResumeTriggers(matcher).ConfigureAwait(false);
        }
Пример #2
0
        public async Task PauseJobs(string schedulerName, GroupMatcherDto groupMatcher)
        {
            IScheduler scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            GroupMatcher <JobKey> matcher = (groupMatcher ?? new GroupMatcherDto()).GetJobGroupMatcher();
            await scheduler.PauseJobs(matcher).ConfigureAwait(false);
        }
        public async Task ResumeJobs(string schedulerName, GroupMatcherDto groupMatcher)
        {
            var scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            var matcher = (groupMatcher ?? new GroupMatcherDto()).GetJobGroupMatcher();
            await scheduler.ResumeJobs(matcher).ConfigureAwait(false);
        }
Пример #4
0
        public async Task PauseTriggers(string schedulerName, GroupMatcherDto groupMatcher)
        {
            var scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            var matcher = (groupMatcher ?? new GroupMatcherDto()).GetTriggerGroupMatcher();
            await scheduler.PauseTriggers(matcher).ConfigureAwait(false);
        }
Пример #5
0
        public async Task<IReadOnlyList<KeyDto>> Triggers(string schedulerName, GroupMatcherDto groupMatcher)
        {
            var scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);
            var matcher = (groupMatcher ?? new GroupMatcherDto()).GetTriggerGroupMatcher();
            var jobKeys = await scheduler.GetTriggerKeys(matcher).ConfigureAwait(false);

            return jobKeys.Select(x => new KeyDto(x)).ToList();
        }
Пример #6
0
        public async Task <IReadOnlyList <KeyDto> > Triggers(string schedulerName, GroupMatcherDto groupMatcher)
        {
            IScheduler scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            GroupMatcher <TriggerKey>        matcher = (groupMatcher ?? new GroupMatcherDto()).GetTriggerGroupMatcher();
            IReadOnlyCollection <TriggerKey> jobKeys = await scheduler.GetTriggerKeys(matcher).ConfigureAwait(false);

            return(jobKeys.Select(x => new KeyDto(x)).ToList());
        }
        public async Task <IReadOnlyList <KeyDto> > Jobs(string schedulerName, GroupMatcherDto groupMatcher)
        {
            var scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);

            var matcher = (groupMatcher ?? new GroupMatcherDto()).GetJobGroupMatcher();
            var jobKeys = await scheduler.GetJobKeys(matcher).ConfigureAwait(false);

            return(jobKeys.Select(x => new KeyDto(x)).ToList());
        }
Пример #8
0
 public async Task ResumeTriggers(string schedulerName, GroupMatcherDto groupMatcher)
 {
     var scheduler = await GetScheduler(schedulerName).ConfigureAwait(false);
     var matcher = (groupMatcher ?? new GroupMatcherDto()).GetTriggerGroupMatcher();
     await scheduler.ResumeTriggers(matcher).ConfigureAwait(false);
 }