示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationMessageWithCallback" /> class.
 /// </summary>
 /// <param name="sender">The message's sender.</param>
 /// <param name="notification">An arbitrary string that will be carried by the message.</param>
 /// <param name="callback">The callback method that can be executed by the recipient to notify the sender that the message has been processed.</param>
 public NotificationMessageWithCallback(Object sender, String notification, Delegate callback) : base(sender, notification)
 {
     NotificationMessageWithCallback.CheckCallback(callback);
     this.callback = callback;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationMessageWithCallback" /> class.
 /// </summary>
 /// <param name="notification">An arbitrary string that will be carried by the message.</param>
 /// <param name="callback">The callback method that can be executed by the recipient to notify the sender that the message has been processed.</param>
 public NotificationMessageWithCallback(string notification, Delegate callback) : base(notification)
 {
     NotificationMessageWithCallback.CheckCallback(callback);
     this.callback = callback;
 }