Show / Hide Table of Contents

    Class MessageSerializationContext

    The context that is passed from the producer or consumer to the serializer. It can be used to customize the serialization behavior according to the endpoint.

    Inheritance
    object
    MessageSerializationContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Serialization
    Assembly: Silverback.Integration.dll
    Syntax
    public class MessageSerializationContext

    Constructors

    | Improve this doc View source

    MessageSerializationContext(IEndpoint?, string?)

    Initializes a new instance of the MessageSerializationContext class from the provided IEndpoint.

    Declaration
    public MessageSerializationContext(IEndpoint? endpoint, string? actualEndpointName = null)
    Parameters
    Type Name Description
    IEndpoint endpoint

    The related endpoint configuration.

    string actualEndpointName

    The name of the actual related endpoint.

    Properties

    | Improve this doc View source

    ActualEndpointName

    Gets the name of the actual endpoint (in case the Endpoint configuration points to multiple endpoints, for example if consuming multiple topics with a single KafkaConsumer).

    Declaration
    public string? ActualEndpointName { get; }
    Property Value
    Type Description
    string
    | Improve this doc View source

    Empty

    Gets the default instance of an empty context.

    Declaration
    public static MessageSerializationContext Empty { get; }
    Property Value
    Type Description
    MessageSerializationContext
    | Improve this doc View source

    Endpoint

    Gets the related endpoint configuration.

    Declaration
    public IEndpoint? Endpoint { get; }
    Property Value
    Type Description
    IEndpoint
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini