Class StaticOutboundRouter
Routes all messages to a static collection of pre-defined 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 StaticOutboundRouter : OutboundRouter<object>, IOutboundRouter<object>, IOutboundRouter
Constructors
| Improve this doc View sourceStaticOutboundRouter(IProducerEndpoint[])
Initializes a new instance of the StaticOutboundRouter class.
Declaration
public StaticOutboundRouter(params IProducerEndpoint[] endpoints)
Parameters
Type | Name | Description |
---|---|---|
IProducerEndpoint[] | endpoints | The endpoints to route the messages to. |
StaticOutboundRouter(IEnumerable<IProducerEndpoint>)
Initializes a new instance of the StaticOutboundRouter class.
Declaration
public StaticOutboundRouter(IEnumerable<IProducerEndpoint> endpoints)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IProducerEndpoint> | endpoints | The endpoints to route the messages to. |
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<System.Object>.Endpoints
Methods
| Improve this doc View sourceGetDestinationEndpoints(Object, MessageHeaderCollection)
Declaration
public override IEnumerable<IProducerEndpoint> GetDestinationEndpoints(object message, MessageHeaderCollection headers)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
MessageHeaderCollection | headers |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IProducerEndpoint> |
Overrides
Silverback.Messaging.Outbound.Routing.OutboundRouter<System.Object>.GetDestinationEndpoints(System.Object, Silverback.Messaging.Messages.MessageHeaderCollection)
Remarks
Always returns the endpoints provided in the constructor.