Esempio n. 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);
        }
Esempio n. 2
0
 private void RaiseEntityChangeEvents(PendingEventEntities pendingEntityChanges)
 {
     RaiseTicketsChanged(this, pendingEntityChanges.PendingTicketChanges);
     RaiseNotificationsCreated(this, pendingEntityChanges.PendingEventNotificationChanges);
 }