Class OutboundRoute
Defines the IOutboundRouter to be used to get the destination endpoints to produce the messages of the specified type to.
Implements
Inherited Members
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public class OutboundRoute : IOutboundRoute
Constructors
| Improve this doc View sourceOutboundRoute(Type, Func<IServiceProvider, IOutboundRouter>)
Initializes a new instance of the OutboundRoute class.
Declaration
public OutboundRoute(Type messageType, Func<IServiceProvider, IOutboundRouter> outboundRouterFactory)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | The type of the messages to be routed to the outbound endpoint(s). |
Func<IServiceProvider, IOutboundRouter> | outboundRouterFactory | The factory to be used to resolve the IOutboundRouter to be used to determine the destination endpoint. |
Properties
| Improve this doc View sourceMessageType
Gets the type of the messages to be routed to the outbound endpoint(s).
Declaration
public Type MessageType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this doc View sourceGetOutboundRouter(IServiceProvider)
Returns the instance of IOutboundRouter to be used to determine the destination endpoint.
Declaration
public IOutboundRouter GetOutboundRouter(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The IServiceProvider to be used to resolve the router. |
Returns
Type | Description |
---|---|
IOutboundRouter | The instance of IOutboundRouter<TMessage>. |