Class DateTimeOffsetSerializer
A serializer for the GraphBinary types Date and Timestamp. Both are represented as System.DateTimeOffset in .NET.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Structure.IO.GraphBinary.Types
Assembly: cs.temp.dll.dll
Syntax
public class DateTimeOffsetSerializer : SimpleTypeSerializer<DateTimeOffset>, ITypeSerializer
Fields
DateSerializer
A serializer for the GraphBinary type Date, represented as System.DateTimeOffset in .NET.
Declaration
public static readonly DateTimeOffsetSerializer DateSerializer
Field Value
Type | Description |
---|---|
DateTimeOffsetSerializer |
TimestampSerializer
A serializer for the GraphBinary type Timestamp, represented as System.DateTimeOffset in .NET.
Declaration
public static readonly DateTimeOffsetSerializer TimestampSerializer
Field Value
Type | Description |
---|---|
DateTimeOffsetSerializer |
Methods
ReadValueAsync(Stream, GraphBinaryReader, CancellationToken)
Declaration
protected override async Task<DateTimeOffset> ReadValueAsync(Stream stream, GraphBinaryReader reader, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | |
GraphBinaryReader | reader | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.DateTimeOffset> |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.DateTimeOffset>.ReadValueAsync(Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryReader, CancellationToken)
WriteValueAsync(DateTimeOffset, Stream, GraphBinaryWriter, CancellationToken)
Declaration
protected override async Task WriteValueAsync(DateTimeOffset value, Stream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.DateTimeOffset | value | |
Stream | stream | |
GraphBinaryWriter | writer | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Gremlin.Net.Structure.IO.GraphBinary.Types.SimpleTypeSerializer<System.DateTimeOffset>.WriteValueAsync(System.DateTimeOffset, Stream, Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter, CancellationToken)