Example #1
0
        protected void OnCustomNonDeletedObjectsToSave(CustomNonDeletedObjectsToSaveArgs e)
        {
            EventHandler <CustomNonDeletedObjectsToSaveArgs> handler = CustomNonDeletedObjectsToSave;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
        void Save()
        {
            var customNonDeletedObjectsToSaveArgs = new CustomNonDeletedObjectsToSaveArgs(ObjectSpace.GetNonDeletedObjectsToSave <object>().ToList());

            OnCustomNonDeletedObjectsToSave(customNonDeletedObjectsToSaveArgs);
            customNonDeletedObjectsToSaveArgs.Objects.OfType <IJobTriggerTriggerListenerTriggerLink>().ToList().ForEach(AddTriggerListeners);
            customNonDeletedObjectsToSaveArgs.Objects.OfType <IJobDetailJobListenerTriggerLink>().ToList().ForEach(AddJobListeners);
            customNonDeletedObjectsToSaveArgs.Objects.OfType <IJobDetailTriggerLink>().ToList().ForEach(ScheduleJob);
            customNonDeletedObjectsToSaveArgs.Objects.OfType <IJobSchedulerGroupTriggerLink>().ToList().ForEach(ScheduleGroup);
        }
 protected void OnCustomNonDeletedObjectsToSave(CustomNonDeletedObjectsToSaveArgs e) {
     EventHandler<CustomNonDeletedObjectsToSaveArgs> handler = CustomNonDeletedObjectsToSave;
     if (handler != null) handler(this, e);
 }
 void Save() {
     var customNonDeletedObjectsToSaveArgs = new CustomNonDeletedObjectsToSaveArgs(ObjectSpace.GetNonDeletedObjectsToSave<object>().ToList());
     OnCustomNonDeletedObjectsToSave(customNonDeletedObjectsToSaveArgs);
     customNonDeletedObjectsToSaveArgs.Objects.OfType<IJobTriggerTriggerListenerTriggerLink>().ToList().ForEach(AddTriggerListeners);
     customNonDeletedObjectsToSaveArgs.Objects.OfType<IJobDetailJobListenerTriggerLink>().ToList().ForEach(AddJobListeners);
     customNonDeletedObjectsToSaveArgs.Objects.OfType<IJobDetailTriggerLink>().ToList().ForEach(ScheduleJob);
     customNonDeletedObjectsToSaveArgs.Objects.OfType<IJobSchedulerGroupTriggerLink>().ToList().ForEach(ScheduleGroup);
 }