public static bool Validate(AddAlertNotification notification)
 {
     return(Validate((BaseNotification)notification) && notification.Alert != null && notification.Alert.Text != null && notification.Alert.AlertId.HasValue && notification.Alert.Level != null && notification.Alert.Timestamp.HasValue);
 }
 public AddAlertNotificationEventArgs(AddAlertNotification notification)
 {
     Notification = notification;
 }
Пример #3
0
 public Alert(AddAlertNotification notification)
     : this(notification.Alert)
 {
 }
        private void Dispatch(AddAlertNotification notification)
        {
            AddAlertNotificationEventArgs e = new AddAlertNotificationEventArgs(notification);

            this.OnAlertAdded(this, e);
        }