Class SilverbackBuilderHandleMessageOfTypeExtensions
Adds the HandleMessageOfType methods to the ISilverbackBuilder.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Core.dll
Syntax
public static class SilverbackBuilderHandleMessageOfTypeExtensions
Methods
| Improve this doc View sourceHandleMessagesOfType(ISilverbackBuilder, Type)
Configures the specified type to be recognized as a message to enable features like automatic republishing.
Declaration
public static ISilverbackBuilder HandleMessagesOfType(this ISilverbackBuilder silverbackBuilder, Type messageType)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
| Type | messageType | The (base) message type. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
HandleMessagesOfType<TMessage>(ISilverbackBuilder)
Configures the type TMessage to be recognized as a message to enable
features like automatic republishing.
Declaration
public static ISilverbackBuilder HandleMessagesOfType<TMessage>(this ISilverbackBuilder silverbackBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
| Name | Description |
|---|---|
| TMessage | The (base) message type. |