Class DictionaryOutboundRouter<TMessage, TEndpoint>
Routes the outbound messages to one or multiple endpoints.
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 DictionaryOutboundRouter<TMessage, TEndpoint> : OutboundRouter<TMessage>, IOutboundRouter<TMessage>, IOutboundRouter where TEndpoint : IProducerEndpoint
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be routed. |
TEndpoint | The type of the IProducerEndpoint. |
Constructors
| Improve this doc View sourceDictionaryOutboundRouter(DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction, IReadOnlyDictionary<String, TEndpoint>)
Initializes a new instance of the DictionaryOutboundRouter<TMessage, TEndpoint> class.
Declaration
public DictionaryOutboundRouter(DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction routerFunction, IReadOnlyDictionary<string, TEndpoint> endpoints)
Parameters
Type | Name | Description |
---|---|---|
DictionaryOutboundRouter.RouterFunction<> | routerFunction | The DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction. |
System.Collections.Generic.IReadOnlyDictionary<System.String, TEndpoint> | endpoints | The System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> containing the endpoints and their key. |
DictionaryOutboundRouter(DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction, IReadOnlyDictionary<String, TEndpoint>)
Initializes a new instance of the DictionaryOutboundRouter<TMessage, TEndpoint> class.
Declaration
public DictionaryOutboundRouter(DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction routerFunction, IReadOnlyDictionary<string, TEndpoint> endpoints)
Parameters
Type | Name | Description |
---|---|---|
DictionaryOutboundRouter.SingleEndpointRouterFunction<> | routerFunction | The DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction. |
System.Collections.Generic.IReadOnlyDictionary<System.String, TEndpoint> | endpoints | The System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> containing the endpoints and their key. |
Properties
| Improve this doc View sourceEndpoints
Declaration
public override IEnumerable<IProducerEndpoint> Endpoints { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProducerEndpoint> |
Overrides
Silverback.Messaging.Outbound.Routing.OutboundRouter<TMessage>.Endpoints
Methods
| Improve this doc View sourceGetDestinationEndpoints(TMessage, MessageHeaderCollection)
Declaration
public override IEnumerable<IProducerEndpoint> GetDestinationEndpoints(TMessage message, MessageHeaderCollection headers)
Parameters
Type | Name | Description |
---|---|---|
TMessage | message | |
MessageHeaderCollection | headers |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProducerEndpoint> |
Overrides
Silverback.Messaging.Outbound.Routing.OutboundRouter<TMessage>.GetDestinationEndpoints(TMessage, Silverback.Messaging.Messages.MessageHeaderCollection)