Delegate DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction
The actual router method that receives the message (including its headers) together with the dictionary containing all endpoints and returns the destination endpoints.
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public delegate IEnumerable<TEndpoint> DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction(TMessage message, MessageHeaderCollection headers, IReadOnlyDictionary<string, TEndpoint> endpoints)
Parameters
Type | Name | Description |
---|---|---|
TMessage | message | The message to be routed. |
MessageHeaderCollection | headers | The message headers. |
IReadOnlyDictionary<string, TEndpoint> | endpoints | The dictionary containing all configured endpoints for this router. |
Returns
Type | Description |
---|---|
IEnumerable<TEndpoint> | The destination endpoints. |