コード例 #1
0
 /// <summary>
 /// Instantiates a message of type T and publishes it.
 /// </summary>
 /// <typeparam name="T">The type of message, usually an interface.</typeparam>
 /// <param name="messageConstructor">An action which initializes properties of the message.</param>
 /// <param name="publishOptions">Specific options for this event.</param>
 public Task Publish <T>(Action <T> messageConstructor, PublishOptions publishOptions)
 {
     return(BusOperations.Publish(this, messageConstructor, publishOptions));
 }
コード例 #2
0
 /// <summary>
 ///  Publish the message to subscribers.
 /// </summary>
 /// <param name="message">The message to publish.</param>
 /// <param name="options">The options for the publish.</param>
 public Task Publish(object message, PublishOptions options)
 {
     return(BusOperations.Publish(this, message, options));
 }