Interface IOutboundRoutingConfiguration
Holds the outbound messages routing configuration (which message is redirected to which endpoint).
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public interface IOutboundRoutingConfiguration
Properties
| Improve this doc View sourceIdempotentEndpointRegistration
Gets or sets a value indicating whether the registration of endpoints is idempotent. This means that
an endpoint for the same message type and the same name cannot be registered multiple times. The default
is true
.
Declaration
bool IdempotentEndpointRegistration { get; set; }
Property Value
Type | Description |
---|---|
bool |
PublishOutboundMessagesToInternalBus
Gets or sets a value indicating whether the messages to be routed through an outbound connector have
also to be published to the internal bus, to be locally subscribed. The default is false
.
Declaration
bool PublishOutboundMessagesToInternalBus { get; set; }
Property Value
Type | Description |
---|---|
bool |
Routes
Gets the configured outbound routes.
Declaration
IReadOnlyCollection<IOutboundRoute> Routes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IOutboundRoute> |
Methods
| Improve this doc View sourceAdd(Type, Func<IServiceProvider, IOutboundRouter>)
Add an outbound routing rule.
Declaration
IOutboundRoutingConfiguration Add(Type messageType, Func<IServiceProvider, IOutboundRouter> outboundRouterFactory)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | The type of the messages to be routed. |
Func<IServiceProvider, IOutboundRouter> | outboundRouterFactory | The factory method to be used to get the instance of IOutboundRouter to be used to determine the destination endpoint. |
Returns
Type | Description |
---|---|
IOutboundRoutingConfiguration | The IOutboundRoutingConfiguration so that additional calls can be chained. |
Add<TMessage>(Func<IServiceProvider, IOutboundRouter>)
Add an outbound routing rule.
Declaration
IOutboundRoutingConfiguration Add<TMessage>(Func<IServiceProvider, IOutboundRouter> outboundRouterFactory)
Parameters
Type | Name | Description |
---|---|---|
Func<IServiceProvider, IOutboundRouter> | outboundRouterFactory | The factory method to be used to get the instance of IOutboundRouter to be used to determine the destination endpoint. |
Returns
Type | Description |
---|---|
IOutboundRoutingConfiguration | The IOutboundRoutingConfiguration so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be routed. |
GetRoutesForMessage(object)
Returns the outbound routes that apply to the specified message.
Declaration
IReadOnlyCollection<IOutboundRoute> GetRoutesForMessage(object message)
Parameters
Type | Name | Description |
---|---|---|
object | message | The message to be routed. |
Returns
Type | Description |
---|---|
IReadOnlyCollection<IOutboundRoute> | The outbound routes for the specified message. |
GetRoutesForMessage(Type)
Returns the outbound routes that apply to a message of the specified message.
Declaration
IReadOnlyCollection<IOutboundRoute> GetRoutesForMessage(Type messageType)
Parameters
Type | Name | Description |
---|---|---|
Type | messageType | The type of the message to be routed. |
Returns
Type | Description |
---|---|
IReadOnlyCollection<IOutboundRoute> | The outbound routes for the specified message. |