Table of Contents

AddAggregateRootConverter Method

Definition

Namespace
Savvyio.Extensions.Newtonsoft.Json
Assemblies
Savvyio.Extensions.Newtonsoft.Json.dll
Source
src/Savvyio.Extensions.Newtonsoft.Json/JsonConverterExtensions.cs

AddAggregateRootConverter<TKey>(ICollection<JsonConverter>, Action<ActivatorOptions>)

Adds a AggregateRoot<TKey> converter to the collection.

public static ICollection<JsonConverter> AddAggregateRootConverter<TKey>(this ICollection<JsonConverter> converters, Action<ActivatorOptions> setup = null)

Parameters

converters ICollection<JsonConverter>

The collection to extend.

setup Action<ActivatorOptions>

The ActivatorOptions which may be configured.

Returns

ICollection<JsonConverter>

A reference to converters so that additional calls can be chained.

Type Parameters

TKey

Exceptions

ArgumentNullException

converters cannot be null.