Show / Hide Table of Contents

    Class JsonMessageSerializerBuilder

    Builds the JsonMessageSerializer.

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

    Constructors

    JsonMessageSerializerBuilder()

    Builds the JsonMessageSerializer.

    Declaration
    public JsonMessageSerializerBuilder()

    Methods

    Build()

    Builds the IMessageSerializer instance.

    Declaration
    public IMessageSerializer Build()
    Returns
    Type Description
    IMessageSerializer

    The IMessageSerializer.

    Configure(Action<JsonSerializerOptions>)

    Configures the JsonSerializerOptions.

    Declaration
    public JsonMessageSerializerBuilder Configure(Action<JsonSerializerOptions> configureAction)
    Parameters
    Type Name Description
    Action<JsonSerializerOptions> configureAction

    An Action<T> that takes the JsonSerializerOptions and configures it.

    Returns
    Type Description
    JsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    DisableTypeHeader()

    Specifies that the message type header (see MessageType) must not be set.

    Declaration
    public JsonMessageSerializerBuilder DisableTypeHeader()
    Returns
    Type Description
    JsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    SetTypeHeader()

    Specifies that the message type header (see MessageType) must be set. This is necessary when sending multiple message type through the same endpoint, to allow Silverback to automatically figure out the correct type to deserialize into.

    Declaration
    public JsonMessageSerializerBuilder SetTypeHeader()
    Returns
    Type Description
    JsonMessageSerializerBuilder

    The JsonMessageSerializerBuilder so that additional calls can be chained.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini