Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:GalaSoft.MvvmLight.Messaging.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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:GalaSoft.MvvmLight.Messaging.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;
 }