Skip to content

OrleansJsonSerializationBinder Methods

Implementation of Newtonsoft.Json.Serialization.ISerializationBinder which resolves types using a TypeConverter and enforces the configured Orleans type allow-list, preventing arbitrary types from being constructed during deserialization.

BindToType(string?, string)

override
View source
public override Type BindToType(string? assemblyName, string typeName)
When overridden in a derived class, controls the binding of a serialized object to a type.

Parameters

assemblyNamestring?
Specifies the System.Reflection.Assembly name of the serialized object.
typeNamestring
Specifies the System.Type name of the serialized object.

Returns

The type of the object the formatter creates a new instance of.