Interface IMessageSerializer
Serializes data to and from Gremlin Server.
Namespace: Gremlin.Net.Driver
Assembly: cs.temp.dll.dll
Syntax
public interface IMessageSerializer
Methods
DeserializeMessageAsync(Byte[], CancellationToken)
Deserializes a
Declaration
Task<ResponseMessage<List<object>>> DeserializeMessageAsync(byte[] message, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | The serialized message to deserialize. |
CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ResponseMessage<List<System.Object>>> | The deserialized |
SerializeMessageAsync(RequestMessage, CancellationToken)
Serializes a
Declaration
Task<byte[]> SerializeMessageAsync(RequestMessage requestMessage, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
RequestMessage | requestMessage | The |
CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Byte[]> | The serialized message. |