Inheritance: Disco.Services.Tasks.ScheduledTask
Exemplo n.º 1
0
        public static ScheduledTaskStatus ScheduleSync(IEnumerable<ADManagedGroup> ManagedGroups)
        {
            if (ManagedGroups == null)
                throw new ArgumentNullException("ManagedGroups");

            JobDataMap taskData = new JobDataMap() {
                {"ManagedGroups", ManagedGroups.ToList() }
            };

            var instance = new ADManagedGroupsSyncTask();
            return instance.ScheduleTask(taskData);
        }
Exemplo n.º 2
0
        public static ScheduledTaskStatus ScheduleSync(ADManagedGroup ManagedGroup)
        {
            if (ManagedGroup == null)
                throw new ArgumentNullException("ManagedGroup");

            JobDataMap taskData = new JobDataMap() {
                {"ManagedGroups", new List<ADManagedGroup> { ManagedGroup } }
            };

            var instance = new ADManagedGroupsSyncTask();
            return instance.ScheduleTask(taskData);
        }
Exemplo n.º 3
0
 public static ScheduledTaskStatus ScheduleSyncAll()
 {
     var instance = new ADManagedGroupsSyncTask();
     return instance.ScheduleTask();
 }