Interface IGremlinClient
Provides a mechanism for submitting Gremlin requests.
Inherited Members
Namespace: Gremlin.Net.Driver
Assembly: Gremlin.Net.dll
Syntax
public interface IGremlinClient : IDisposable
Methods
SubmitAsync<T>(RequestMessage, CancellationToken)
Submits a request message as an asynchronous operation.
Declaration
Task<ResultSet<T>> SubmitAsync<T>(RequestMessage requestMessage, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestMessage | requestMessage | The RequestMessage to send. |
| CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
| Type | Description |
|---|---|
| Task<ResultSet<T>> | A ResultSet<T> containing the data and status attributes returned from the server. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the expected results. |
Exceptions
| Type | Condition |
|---|---|
| ResponseException | Thrown when a response is received from Gremlin Server that indicates that an error occurred. |