Show / Hide Table of Contents

    Class ProducerConfigurationBuilderNewtonsoftExtensions

    Adds the SerializeAsJsonUsingNewtonsoft method to the ProducerEndpointConfigurationBuilder<TMessage, TConfiguration, TEndpoint, TBuilder>.

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

    Methods

    SerializeAsJsonUsingNewtonsoft<TMessage, TBuilder>(IMessageSerializationBuilder<TMessage, TBuilder>, Action<NewtonsoftJsonMessageSerializerBuilder>?)

    Sets the serializer to an instance of NewtonsoftJsonMessageSerializer to serialize the produced messages as JSON.

    Declaration
    public static TBuilder SerializeAsJsonUsingNewtonsoft<TMessage, TBuilder>(this IMessageSerializationBuilder<TMessage, TBuilder> builder, Action<NewtonsoftJsonMessageSerializerBuilder>? serializerBuilderAction = null)
    Parameters
    Type Name Description
    IMessageSerializationBuilder<TMessage, TBuilder> builder

    The builder.

    Action<NewtonsoftJsonMessageSerializerBuilder> serializerBuilderAction

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

    Returns
    Type Description
    TBuilder

    The endpoint builder so that additional calls can be chained.

    Type Parameters
    Name Description
    TMessage

    The type of the messages being produced.

    TBuilder

    The actual builder type.

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