Class BrokeredMessageBuilderExtensions
Extension methods for brokered message builders.
Inheritance
Inherited Members
Namespace: Kephas.Messaging.Distributed
Assembly: Kephas.Messaging.dll
Syntax
public static class BrokeredMessageBuilderExtensions
Methods
| Improve this Doc View SourceWithEventContent(IBrokeredMessageBuilder, Object)
Sets the content message to an event.
Declaration
public static IBrokeredMessageBuilder WithEventContent(this IBrokeredMessageBuilder this, object event)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The message builder to act on. |
System.Object | event | The event. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |
WithMessageContent(IBrokeredMessageBuilder, Object)
Sets the content message.
Declaration
public static IBrokeredMessageBuilder WithMessageContent(this IBrokeredMessageBuilder this, object message)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The message builder to act on. |
System.Object | message | The message. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |
WithRecipients(IBrokeredMessageBuilder, IEnumerable<String>)
Sets the recipients to the brokered message.
Declaration
public static IBrokeredMessageBuilder WithRecipients(this IBrokeredMessageBuilder this, IEnumerable<string> recipientUris)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The brokered message builder to act on. |
System.Collections.Generic.IEnumerable<System.String> | recipientUris | The recipients as URIs. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |
WithRecipients(IBrokeredMessageBuilder, IEnumerable<Uri>)
Sets the recipients to the brokered message.
Declaration
public static IBrokeredMessageBuilder WithRecipients(this IBrokeredMessageBuilder this, IEnumerable<Uri> recipients)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The brokered message builder to act on. |
System.Collections.Generic.IEnumerable<System.Uri> | recipients | The recipients. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |
WithRecipients(IBrokeredMessageBuilder, String[])
Sets the recipients to the brokered message.
Declaration
public static IBrokeredMessageBuilder WithRecipients(this IBrokeredMessageBuilder this, params string[] recipientUris)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The brokered message builder to act on. |
System.String[] | recipientUris | The recipients as URIs. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |
WithRecipients(IBrokeredMessageBuilder, Uri[])
Sets the recipients to the brokered message.
Declaration
public static IBrokeredMessageBuilder WithRecipients(this IBrokeredMessageBuilder this, params Uri[] recipients)
Parameters
Type | Name | Description |
---|---|---|
IBrokeredMessageBuilder | this | The brokered message builder to act on. |
System.Uri[] | recipients | The recipients. |
Returns
Type | Description |
---|---|
IBrokeredMessageBuilder | This IBrokeredMessageBuilder. |