Skip to content

OrleansJsonSerializerSettings Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

GetDefaultSerializerSettings(IServiceProvider)

static
View source
public static JsonSerializerSettings GetDefaultSerializerSettings(IServiceProvider services)
Returns the default serializer settings.

Parameters

servicesIServiceProvider
The service provider.

Returns

The 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
if set to true, use full assembly-qualified names when formatting type names.
indentJsonbool
if set to true, indent the formatted JSON.
typeNameHandlingTypeNameHandling?
The type name handling options.

Returns

The provided serializer settings.