Show / Hide Table of Contents

    Class StaticOutboundRouter

    Routes all messages to a static collection of pre-defined endpoints.

    Inheritance
    object
    OutboundRouter<object>
    StaticOutboundRouter
    Implements
    IOutboundRouter<object>
    IOutboundRouter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 source

    StaticOutboundRouter(params 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.

    | Improve this doc View source

    StaticOutboundRouter(IEnumerable<IProducerEndpoint>)

    Initializes a new instance of the StaticOutboundRouter class.

    Declaration
    public StaticOutboundRouter(IEnumerable<IProducerEndpoint> endpoints)
    Parameters
    Type Name Description
    IEnumerable<IProducerEndpoint> endpoints

    The endpoints to route the messages to.

    Properties

    | Improve this doc View source

    Endpoints

    Gets the endpoints that are potentially targeted by this router. This collection could be built over time in case of a dynamic IOutboundRouter but that will prevent the IOutboxWorker to work properly and it's not optimal as it used for example by the health checks to ping all possible endpoints.

    Declaration
    public override IEnumerable<IProducerEndpoint> Endpoints { get; }
    Property Value
    Type Description
    IEnumerable<IProducerEndpoint>
    Overrides
    OutboundRouter<object>.Endpoints

    Methods

    | Improve this doc View source

    GetDestinationEndpoints(object, MessageHeaderCollection)

    Returns the collection of IProducerEndpoint representing the endpoints where the specified message must be produced.

    Declaration
    public override IEnumerable<IProducerEndpoint> GetDestinationEndpoints(object message, MessageHeaderCollection headers)
    Parameters
    Type Name Description
    object message

    The message to be routed.

    MessageHeaderCollection headers

    The message headers collection.

    Returns
    Type Description
    IEnumerable<IProducerEndpoint>

    The endpoints to route the message to.

    Overrides
    OutboundRouter<object>.GetDestinationEndpoints(object, MessageHeaderCollection)
    Remarks

    Always returns the endpoints provided in the constructor.

    Implements

    IOutboundRouter<TMessage>
    IOutboundRouter
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini