Show / Hide Table of Contents

    Class ProducerEndpointNameResolver<TMessage>

    The base class for a type used to resolve the actual target endpoint name for the outbound message.

    Inheritance
    object
    ProducerEndpointNameResolver<TMessage>
    KafkaProducerEndpointNameResolver<TMessage>
    Implements
    IProducerEndpointNameResolver
    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 abstract class ProducerEndpointNameResolver<TMessage> : IProducerEndpointNameResolver where TMessage : class
    Type Parameters
    Name Description
    TMessage

    The type of the messages being produced.

    Methods

    | Improve this doc View source

    GetName(IOutboundEnvelope)

    Gets the actual target endpoint name for the message being produced. If it returns null the message will not be produced.

    Declaration
    public string GetName(IOutboundEnvelope envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The envelope containing the message being produced.

    Returns
    Type Description
    string

    The actual name of the endpoint to be produced to.

    | Improve this doc View source

    GetName(IOutboundEnvelope<TMessage>)

    Gets the actual target endpoint name for the message being produced.

    Declaration
    protected abstract string GetName(IOutboundEnvelope<TMessage> envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope<TMessage> envelope

    The envelope containing the message being produced.

    Returns
    Type Description
    string

    The actual name of the endpoint to be produced to.

    Implements

    IProducerEndpointNameResolver
    • Improve this doc
    • View source
    In this article
    • Methods
      • GetName(IOutboundEnvelope)
      • GetName(IOutboundEnvelope<TMessage>)
    • Implements
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini