Class ClassSerializer
A serializer for the GraphBinary type class that takes GremlinType objects as their .NET representation.
Implements
Inherited Members
Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
Assembly: Gremlin.Net.dll
Syntax
public class ClassSerializer : SimpleTypeSerializer<GremlinType>, ITypeSerializer
Constructors
ClassSerializer()
Initializes a new instance of the ClassSerializer class.
Declaration
public ClassSerializer()
Methods
ReadValueAsync(Stream, GraphBinaryReader, CancellationToken)
Currently not supported.
Declaration
protected override Task<GremlinType> ReadValueAsync(Stream stream, GraphBinaryReader reader, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | |
| GraphBinaryReader | reader | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<GremlinType> |
Overrides
WriteValueAsync(GremlinType, Stream, GraphBinaryWriter, CancellationToken)
Writes a non-nullable value into a stream.
Declaration
protected override Task WriteValueAsync(GremlinType value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GremlinType | 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. |