/// <summary>
 /// Sends a simple string message to a specified topic path with context string.
 ///
 /// The callback will be directed to the contextual callback with the string provided.
 /// </summary>
 /// <param name="topicPath"></param>
 /// <param name="message"></param>
 /// <param name="context"></param>
 /// <param name="callback"></param>
 public void Send( string topicPath, string message, string context, ISendContextCallback<string> callback )
 {
     messaging.Send( topicPath, Diffusion.Content.NewContent( message ), context, callback );
 }
示例#2
0
 /// <summary>
 /// Sends a simple string message to a specified topic path with context string.
 ///
 /// The callback will be directed to the contextual callback with the string provided.
 /// </summary>
 /// <param name="topicPath"></param>
 /// <param name="message"></param>
 /// <param name="context"></param>
 /// <param name="callback"></param>
 public void Send(string topicPath, string message, string context, ISendContextCallback <string> callback)
 {
     messaging.Send(topicPath, Diffusion.Content.NewContent(message), context, callback);
 }