src/Orleans.Core/Serialization/OrleansJsonSerializer.cs
/// <summary>
/// Updates the provided serializer settings with the specified options.
/// </summary>
/// <param name="settings">The settings.</param>
/// <param name="useFullAssemblyNames">if set to <c>true</c>, use full assembly-qualified names when formatting type names.</param>
/// <param name="indentJson">if set to <c>true</c>, indent the formatted JSON.</param>
/// <param name="typeNameHandling">The type name handling options.</param>
/// <returns>The provided serializer settings.</returns>
Updates the provided serializer settings with the specified options.
Updates the provided serializer settings with the specified options .
public static JsonSerializerSettings UpdateSerializerSettings(JsonSerializerSettings settings, bool useFullAssemblyNames, bool indentJson, TypeNameHandling? typeNameHandling)
        {
            if (useFullAssemblyNames)
            {
                settings.TypeNameAssemblyFormatHandling = TypeNameAssemblyFormatHandling.Full;
            }
            if (indentJson)
            {
                settings.Formatting = Formatting.Indented;
            }
            if (typeNameHandling.HasValue)
            {
                settings.TypeNameHandling = typeNameHandling.Value;
            }
            return settings;
        }
public static JsonSerializerSettings UpdateSerializerSettings ( JsonSerializerSettings settings , bool useFullAssemblyNames , bool indentJson , TypeNameHandling ? typeNameHandling ) { if ( useFullAssemblyNames ) { settings . TypeNameAssemblyFormatHandling = TypeNameAssemblyFormatHandling . Full ; } if ( indentJson ) { settings . Formatting = Formatting . Indented ; } if ( typeNameHandling . HasValue ) { settings . TypeNameHandling = typeNameHandling . Value ; } return settings ; }
Updates the provided serializer settings with the specified options.
Updates the provided serializer settings with the specified options .
The provided serializer settings.
The provided serializer settings .
settings
JsonSerializerSettings
None
useFullAssemblyNames
bool
if set to true
if set to true
indentJson
bool
if set to true
if set to true
typeNameHandling
TypeNameHandling?
The type name handling options.
The type name handling options .