Show / Hide Table of Contents

    Class SimpleOutboundRouter<TMessage>

    Routes the outbound messages to one outbound endpoint.

    Inheritance
    object
    OutboundRouter<TMessage>
    SimpleOutboundRouter<TMessage>
    Implements
    IOutboundRouter<TMessage>
    IOutboundRouter
    Inherited Members
    OutboundRouter<TMessage>.Endpoints
    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 abstract class SimpleOutboundRouter<TMessage> : OutboundRouter<TMessage>, IOutboundRouter<TMessage>, IOutboundRouter
    Type Parameters
    Name Description
    TMessage

    The type of the messages to be routed.

    Methods

    | Improve this doc View source

    GetDestinationEndpoint(TMessage, MessageHeaderCollection)

    Returns the IProducerEndpoint representing the endpoint where the specified message must be produced. When null is returned, the message will not be be published.

    Declaration
    protected abstract IProducerEndpoint? GetDestinationEndpoint(TMessage message, MessageHeaderCollection headers)
    Parameters
    Type Name Description
    TMessage message

    The message to be routed.

    MessageHeaderCollection headers

    The message headers collection.

    Returns
    Type Description
    IProducerEndpoint

    The endpoint to route the message to, or null if the message doesn't have to be routed.

    | Improve this doc View source

    GetDestinationEndpoints(TMessage, MessageHeaderCollection)

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

    Declaration
    public override IEnumerable<IProducerEndpoint> GetDestinationEndpoints(TMessage message, MessageHeaderCollection headers)
    Parameters
    Type Name Description
    TMessage 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<TMessage>.GetDestinationEndpoints(TMessage, MessageHeaderCollection)

    Implements

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