Table of Contents

Savvyio.Extensions.DependencyInjection.Newtonsoft.Json Namespace

Assembly: Savvyio.Extensions.DependencyInjection.Newtonsoft.Json.dll

Serializing commands and events with Newtonsoft.Json requires a single registration call. The Savvyio.Extensions.DependencyInjection.Newtonsoft.Json namespace provides AddNewtonsoftJsonMarshaller to register NewtonsoftJsonMarshaller as the IMarshaller used throughout the dispatch pipeline.

Start with AddNewtonsoftJsonMarshaller to configure the serializer settings and converters in one step. To use System.Text.Json instead, replace this with Savvyio.Extensions.DependencyInjection.Text.Json.

Availability: .NET 11 and .NET 10

Extension Members

Type Ext Methods
IServiceCollection ⬇️ AddNewtonsoftJsonMarshaller

Classes

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.