Esempio n. 1
0
 /// <summary>
 /// Processes the specified notice.
 /// </summary>
 /// <param name="notice">The notice.</param>
 public static void Process(INotification notice)
 {
     try
     {
         notice.PreDispatch();
         notice.Dispatch();
         notice.PostDispatch();
     }
     catch (Exception ex)
     {
         ExceptionManager.HandleException(ex);
         throw new NotificationException("Error while processing notice!", ex);
     }
 }
 /// <summary>
 /// Processes the specified notice.
 /// </summary>
 /// <param name="notice">The notice.</param>
 public static void Process(INotification notice)
 {
     try
     {
         notice.PreDispatch();
         notice.Dispatch();
         notice.PostDispatch();
     }
     catch (Exception ex)
     {
         ExceptionManager.HandleException(ex);
         throw new NotificationException("Error while processing notice!", ex);
     }
 }