Class RequestMessageSerializer
Allows to serialize a RequestMessage.
Inherited Members
Namespace: Gremlin.Net.Structure.IO.GraphBinary
Assembly: Gremlin.Net.dll
Syntax
public class RequestMessageSerializer
Methods
WriteValueAsync(RequestMessage, MemoryStream, GraphBinaryWriter, CancellationToken)
Write the request message to a stream.
Declaration
public Task WriteValueAsync(RequestMessage requestMessage, MemoryStream stream, GraphBinaryWriter writer, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestMessage | requestMessage | The message to serialize. |
| MemoryStream | stream | The stream to write to. |
| GraphBinaryWriter | writer | A GraphBinaryWriter that can be used to write nested values. |
| 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. |