Class SerializerFeature
Contains metadata about serializers and serialization types.
Inheritance
System.Object
SerializerFeature
Namespace: Orleans.Serialization
Assembly: Orleans.Core.Abstractions.dll
Syntax
public class SerializerFeature : object
Properties
| Improve this Doc View SourceKnownTypes
Gets a collection of metadata about types which may be serializable.
Declaration
public IList<SerializerKnownTypeMetadata> KnownTypes { get; }
Property Value
| Type | Description |
|---|---|
| IList<SerializerKnownTypeMetadata> |
SerializerDelegates
Gets a collection of metadata about delegates used to serialize individual types.
Declaration
public IList<SerializerDelegateMetadata> SerializerDelegates { get; }
Property Value
| Type | Description |
|---|---|
| IList<SerializerDelegateMetadata> |
Remarks
This collection is intended to hold information about built-in serializers which are represented as a collection of delegates.
SerializerTypes
Gets a collection of metadata about types which contain serializer methods for individual types.
Declaration
public IList<SerializerTypeMetadata> SerializerTypes { get; }
Property Value
| Type | Description |
|---|---|
| IList<SerializerTypeMetadata> |
Remarks
This collection corresponds to the SerializerAttribute attribute as well as types which are self-serializing.
Methods
| Improve this Doc View SourceAddKnownType(String, String)
Adds a known type to the KnownTypes property.
Declaration
public void AddKnownType(string fullyQualifiedTypeName, string typeKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fullyQualifiedTypeName | the fully-qualified type name. |
| System.String | typeKey | The orleans type key. |
AddSerializerType(Type, Type)
Adds a serializer type
Declaration
public void AddSerializerType(Type targetType, Type serializerType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | targetType | |
| Type | serializerType |