コード例 #1
0
 /// <summary>Sends a message to the registered receivers using the default messenger.
 /// Usage: new TextMessage("Test").Send();
 /// Returns the input message for chaining. </summary>
 /// <param name="message">The message to send. </param>
 public static Task <CallbackMessageResult <TFirst, TSecond, TThird> > SendAsync <TFirst, TSecond, TThird>(this CallbackMessage <TFirst, TSecond, TThird> message)
 {
     Send(message);
     return(message.Task);
 }
コード例 #2
0
 /// <summary>Sends a message to the registered receivers using the default messenger.
 /// Usage: new TextMessage("Test").Send();
 /// Returns the input message for chaining. </summary>
 /// <param name="message">The message to send. </param>
 public static Task SendAsync(this CallbackMessage message)
 {
     Send(message);
     return(message.Task);
 }
コード例 #3
0
 /// <summary>Sends a message to the registered receivers using the default messenger.
 /// Usage: new TextMessage("Test").Send();
 /// Returns the input message for chaining. </summary>
 /// <param name="message">The message to send. </param>
 public static Task <CallbackMessageResult <T> > SendAsync <T>(this CallbackMessage <T> message)
 {
     Send(message);
     return(message.Task);
 }
コード例 #4
0
ファイル: Messenger.cs プロジェクト: yannduran/MyToolkit
 /// <summary>Sends a message to the registered receivers.
 /// Usage: new TextMessage("Test").Send();
 /// Returns the input message for chaining. </summary>
 /// <param name="message">The message to send. </param>
 public Task <CallbackMessageResult <TFirst, TSecond> > SendAsync <TFirst, TSecond>(CallbackMessage <TFirst, TSecond> message)
 {
     Send(message);
     return(message.Task);
 }