Show / Hide Table of Contents

    Class ConsumerConfigurationBuilderNewtonsoftExtensions

    Adds the DeserializeJsonUsingNewtonsoft method to the ConsumerEndpointConfigurationBuilder<TMessage, TConfiguration, TBuilder>.

    Inheritance
    object
    ConsumerConfigurationBuilderNewtonsoftExtensions
    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 ConsumerConfigurationBuilderNewtonsoftExtensions

    Methods

    DeserializeJsonUsingNewtonsoft<TMessage, TConfiguration, TBuilder>(ConsumerEndpointConfigurationBuilder<TMessage, TConfiguration, TBuilder>, Action<NewtonsoftJsonMessageDeserializerBuilder>?)

    Sets the deserializer to an instance of NewtonsoftJsonMessageDeserializer<TMessage> to deserialize the consumed JSON.

    Declaration
    public static TBuilder DeserializeJsonUsingNewtonsoft<TMessage, TConfiguration, TBuilder>(this ConsumerEndpointConfigurationBuilder<TMessage, TConfiguration, TBuilder> endpointBuilder, Action<NewtonsoftJsonMessageDeserializerBuilder>? deserializerBuilderAction = null) where TConfiguration : ConsumerEndpointConfiguration where TBuilder : ConsumerEndpointConfigurationBuilder<TMessage, TConfiguration, TBuilder>
    Parameters
    Type Name Description
    ConsumerEndpointConfigurationBuilder<TMessage, TConfiguration, TBuilder> endpointBuilder

    The endpoint builder.

    Action<NewtonsoftJsonMessageDeserializerBuilder> deserializerBuilderAction

    An optional Action<T> that takes the NewtonsoftJsonMessageDeserializerBuilder 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 consumed.

    TConfiguration

    The type of the configuration being built.

    TBuilder

    The actual builder type.

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