Class OutboundRoute
Defines the IOutboundRouter to be used to get the destination endpoints to produce the messages of the specified type to.
Inheritance
System.Object
OutboundRoute
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
System.Type | messageType | The type of the messages to be routed to the outbound endpoint(s). |
System.Func<System.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 |
---|---|
System.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 |
---|---|---|
System.IServiceProvider | serviceProvider | The System.IServiceProvider to be used to resolve the router. |
Returns
Type | Description |
---|---|
IOutboundRouter | The instance of IOutboundRouter<TMessage>. |