private static IList <TriggerGroupData> GetTriggerGroups(IScheduler scheduler) { var result = new List <TriggerGroupData>(); if (!scheduler.IsShutdown) { foreach (var groupName in scheduler.GetTriggerGroupNames()) { var data = new TriggerGroupData(groupName); data.Init(); result.Add(data); } } return(result); }
private static async Task <IList <TriggerGroupData> > GetTriggerGroups(IScheduler scheduler) { var result = new List <TriggerGroupData>(); if (!scheduler.IsShutdown) { foreach (var groupName in await scheduler.GetTriggerGroupNames().ConfigureAwait(false)) { var data = new TriggerGroupData(groupName); data.Init(); result.Add(data); } } return(result); }
private static IList<TriggerGroupData> GetTriggerGroups(IScheduler scheduler) { var result = new List<TriggerGroupData>(); if (!scheduler.IsShutdown) { foreach (var groupName in scheduler.GetTriggerGroupNames()) { var data = new TriggerGroupData(groupName); data.Init(); result.Add(data); } } return result; }