Class GraphSONMessageSerializer
Serializes data to and from Gremlin Server in GraphSON format.
Inheritance
System.Object
GraphSONMessageSerializer
Namespace: Gremlin.Net.Structure.IO.GraphSON
Assembly: cs.temp.dll.dll
Syntax
public abstract class GraphSONMessageSerializer : IMessageSerializer
Constructors
GraphSONMessageSerializer(String, GraphSONReader, GraphSONWriter)
Initializes a new instance of the GraphSONMessageSerializer class.
Declaration
protected GraphSONMessageSerializer(string mimeType, GraphSONReader graphSONReader, GraphSONWriter graphSonWriter)
Parameters
Type | Name | Description |
---|---|---|
System.String | mimeType | The MIME type supported by this serializer. |
GraphSONReader | graphSONReader | The GraphSONReader used to deserialize from GraphSON. |
GraphSONWriter | graphSonWriter | The GraphSONWriter used to serialize to GraphSON. |
Methods
DeserializeMessageAsync(Byte[])
Declaration
public virtual Task<ResponseMessage<List<object>>> DeserializeMessageAsync(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message |
Returns
Type | Description |
---|---|
Task<ResponseMessage<List<System.Object>>> |
SerializeMessageAsync(RequestMessage)
Declaration
public virtual Task<byte[]> SerializeMessageAsync(RequestMessage requestMessage)
Parameters
Type | Name | Description |
---|---|---|
RequestMessage | requestMessage |
Returns
Type | Description |
---|---|
Task<System.Byte[]> |