예제 #1
0
        private PendingEventEntities OnSaving()
        {
            var pending = new PendingEventEntities();

            pending.PendingTicketChanges = GetTicketChanges();

            if (SecurityProvider != null)
            {
                ProcessDeletedProjects();
                PreProcessNewTickets();
                PreProcessModifiedTickets(pending.PendingTicketChanges);
                //IMPORTANT! ticket event changes may not exist until after preprocess methods above
                //  are called. Order dependent operations!
                CreateEventNotifications();
                pending.PendingEventNotificationChanges = GetTicketEventNotificationChanges().ToArray();
            }
            return(pending);
        }
예제 #2
0
 private void RaiseEntityChangeEvents(PendingEventEntities pendingEntityChanges)
 {
     RaiseTicketsChanged(this, pendingEntityChanges.PendingTicketChanges);
     RaiseNotificationsCreated(this, pendingEntityChanges.PendingEventNotificationChanges);
 }