Example #1
0
 private object GetMessageForNotification(NotificationBase notification)
 {
     if (notification.HasException())
     {
         return(notification.Exception);
     }
     else if (notification.HasError())
     {
         return(notification.Message);
     }
     else
     {
         return(null);
     }
 }
Example #2
0
 private RabbitConfigurationModel GetConfigurationForNotification(NotificationBase notification)
 {
     if (notification.HasException())
     {
         return(RabbitConfigurationModel.Factory.NewConfigurationForException());
     }
     else if (notification.HasError())
     {
         return(RabbitConfigurationModel.Factory.NewConfigurationForError());
     }
     else
     {
         return(null);
     }
 }