Class TypeSerializer
A serializer for .NET types represented as Class in GraphBinary. Currently only AbstractTraversalStrategy types are supported.
Implements
Inherited Members
Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
Assembly: Gremlin.Net.dll
Syntax
public class TypeSerializer : SimpleTypeSerializer<Type>, ITypeSerializer
Constructors
TypeSerializer()
Initializes a new instance of the TypeSerializer class.
Declaration
public TypeSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader, CancellationToken)
Currently not supported.
Declaration
protected override Task<Type> ReadValueAsync(Stream stream, GraphBinaryReader reader, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | |
| GraphBinaryReader | reader | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<Type> |
Overrides
WriteValueAsync(Type, Stream, GraphBinaryWriter, CancellationToken)
Writes a non-nullable value into a stream.
Declaration
protected override Task WriteValueAsync(Type value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | value | The value to write. |
| Stream | stream | The stream to write to. |
| GraphBinaryWriter | writer | |
| CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous write operation. |