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); }
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); }
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); }
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(); }
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()); }
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); }