Class SilverbackBuilderHandleMessageOfTypeExtensions
Adds the HandleMessageOfType
methods to the ISilverback
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 |
---|---|---|
ISilverback |
silverbackBuilder | The ISilverback |
Type | messageType | The (base) message type. |
Returns
Type | Description |
---|---|
ISilverback |
The ISilverback |
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 |
---|---|---|
ISilverback |
silverbackBuilder | The ISilverback |
Returns
Type | Description |
---|---|
ISilverback |
The ISilverback |
Type Parameters
Name | Description |
---|---|
TMessage | The (base) message type. |