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);
        }
Exemple #2
0
        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;
        }