Show / Hide Table of Contents

    Class JsonMessageSerializerBuilder

    Builds the JsonMessageSerializer or JsonMessageSerializer<TMessage>.

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

    Methods

    | Improve this doc View source

    Build()

    Builds the IMessageSerializer instance.

    Declaration
    public IMessageSerializer Build()
    Returns
    Type Description
    IMessageSerializer

    The IMessageSerializer.

    | Improve this doc View source

    UseFixedType(Type)

    Specifies a fixed message type. This will prevent the message type header to be written when serializing and the header will be ignored when deserializing.

    Declaration
    public IJsonMessageSerializerBuilder UseFixedType(Type messageType)
    Parameters
    Type Name Description
    Type messageType

    The type of the message to serialize or deserialize.

    Returns
    Type Description
    IJsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    | Improve this doc View source

    UseFixedType<TMessage>()

    Specifies a fixed message type. This will prevent the message type header to be written when serializing and the header will be ignored when deserializing.

    Declaration
    public IJsonMessageSerializerBuilder UseFixedType<TMessage>()
    Returns
    Type Description
    IJsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    TMessage

    The type of the message to serialize or deserialize.

    | Improve this doc View source

    WithOptions(JsonSerializerOptions)

    Specifies the JsonSerializerOptions.

    Declaration
    public IJsonMessageSerializerBuilder WithOptions(JsonSerializerOptions options)
    Parameters
    Type Name Description
    JsonSerializerOptions options

    The JsonSerializerOptions.

    Returns
    Type Description
    IJsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    Implements

    IJsonMessageSerializerBuilder
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini