Exemplo n.º 1
0
        protected void OnCustomNonDeletedObjectsToSave(CustomNonDeletedObjectsToSaveArgs e)
        {
            EventHandler <CustomNonDeletedObjectsToSaveArgs> handler = CustomNonDeletedObjectsToSave;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 protected void OnCustomNonDeletedObjectsToSave(CustomNonDeletedObjectsToSaveArgs e) {
     EventHandler<CustomNonDeletedObjectsToSaveArgs> handler = CustomNonDeletedObjectsToSave;
     if (handler != null) handler(this, e);
 }
Exemplo n.º 4
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);
 }