Interface IOutboundRouter<TMessage>
Routes the outbound messages to one or multiple outbound endpoints.
Inherited Members
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public interface IOutboundRouter<TMessage> : IOutboundRouter
Type Parameters
| Name | Description |
|---|---|
| TMessage | The type of the messages to be routed. |
Methods
| Improve this doc View sourceGetDestinationEndpoints(TMessage, MessageHeaderCollection)
Returns the collection of IProducerEndpoint representing the endpoints where the specified message must be produced.
Declaration
IEnumerable<IProducerEndpoint> GetDestinationEndpoints(TMessage message, MessageHeaderCollection headers)
Parameters
| Type | Name | Description |
|---|---|---|
| TMessage | message | The message to be routed. |
| MessageHeaderCollection | headers | The message headers collection. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IProducerEndpoint> | The endpoints to route the message to. |