コード例 #1
0
 /// <summary>
 /// Adds the specified notification to the list.
 /// </summary>
 /// <param name="notificationItem">Notification to add</param>
 public void Add(NotificationItem notificationItem)
 {
     if (notificationItem == null)
     {
         throw new ArgumentNullException("notificationItem");
     }
     _items.Add(notificationItem);
 }
コード例 #2
0
 /// <summary>
 /// This method adds a new notification to this exception instance according to the
 /// specified parameter, and retrieves this exception object.
 /// </summary>
 /// <param name="notification">Business operation notification</param>
 /// <returns>This exception object</returns>
 /// <remarks>
 /// This method can be used directly in throw statement.
 /// </remarks>
 public BusinessOperationException AddNotification(NotificationItem notification)
 {
     EnsureNotifications();
     Notifications.Add(notification);
     return this;
 }
コード例 #3
0
 /// <summary>
 /// Adds the specified notification to the list.
 /// </summary>
 /// <param name="notificationItem">Notification to add</param>
 public void Add(NotificationItem notificationItem)
 {
     if (notificationItem == null) throw new ArgumentNullException("notificationItem");
     _items.Add(notificationItem);
 }