Delegate DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction
The actual router method that receives the message (including its headers) together with the dictionary containing all endpoints and returns the destination endpoint.
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public delegate TEndpoint DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction(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 |
---|---|
TEndpoint | The destination endpoint. |