Interface IOutboundRouter
Routes the outbound messages to one or multiple outbound endpoints.
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public interface IOutboundRouter
Properties
| Improve this doc View sourceEndpoints
Gets the endpoints that are potentially targeted by this router. This collection could be built over time in case of a dynamic IOutboundRouter but that will prevent the IOutboxWorker to work properly and it's not optimal as it used for example by the health checks to ping all possible endpoints.
Declaration
IEnumerable<IProducerEndpoint> Endpoints { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IProducerEndpoint> |
Methods
| Improve this doc View sourceGetDestinationEndpoints(object, MessageHeaderCollection)
Returns the collection of IProducerEndpoint representing the endpoints where the specified message must be produced.
Declaration
IEnumerable<IProducerEndpoint> GetDestinationEndpoints(object message, MessageHeaderCollection headers)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message to be routed. |
| MessageHeaderCollection | headers | The message headers collection. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IProducerEndpoint> | The endpoints to produce to. |