Skip to content

OrleansJsonSerializerSettings Methods

Provides factory and configuration methods for Newtonsoft.Json settings which support Orleans framework types.

GetDefaultSerializerSettings(IServiceProvider)

static
View source
public static JsonSerializerSettings GetDefaultSerializerSettings(IServiceProvider services)
Creates the default serializer settings and configures the Orleans serialization binder and converters.

Parameters

servicesIServiceProvider
The service provider used to resolve serializer dependencies.

Returns

The configured default serializer settings.

UpdateSerializerSettings(JsonSerializerSettings, bool, bool, TypeNameHandling?)

static
View source
public static JsonSerializerSettings UpdateSerializerSettings(JsonSerializerSettings settings, bool useFullAssemblyNames, bool indentJson, TypeNameHandling? typeNameHandling)
Updates the provided serializer settings with the specified options.

Parameters

settingsJsonSerializerSettings
The settings.
useFullAssemblyNamesbool
When true, use full assembly-qualified names when formatting type names; otherwise, leave the current assembly name formatting unchanged.
indentJsonbool
When true, indent the formatted JSON; otherwise, leave the current formatting unchanged.
typeNameHandlingTypeNameHandling?
The type name handling value to apply, or null to leave the current value unchanged.

Returns

The provided serializer settings.