Interface IGremlinClient
Provides a mechanism for submitting Gremlin requests.
Inherited Members
System.IDisposable.Dispose()
Namespace:Gremlin.Net
Assembly:Gremlin.Net.dll
Syntax
public interface IGremlinClient : IDisposable
Methods
| Improve this Doc View SourceSubmitAsync<T>(ScriptRequestMessage)
Submits a request message as an asynchronous operation.
Declaration
Task<IEnumerable<T>> SubmitAsync<T>(ScriptRequestMessage requestMessage)
Parameters
Type | Name | Description |
---|---|---|
ScriptRequestMessage | requestMessage | The ScriptRequestMessage to send. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<T>> | An enumerable collection of the data 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. |