Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationMessageWithCallback" /> class.
 /// </summary>
 /// <param name="sender">The message's sender.</param>
 /// <param name="target">
 /// The message's intended target. This parameter can be used to give an indication as to whom the message was intended for. Of course this is only an indication, amd may be null.
 /// </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, Object target, String notification, Delegate callback) : base(sender, target, notification)
 {
     NotificationMessageWithCallback.CheckCallback(callback);
     this.callback = callback;
 }
Exemplo n.º 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;
 }