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