Class DriverRemoteConnection
A
Inheritance
Implements
Namespace: Gremlin.Net.Driver.Remote
Assembly: cs.temp.dll.dll
Syntax
public class DriverRemoteConnection : IRemoteConnection, IDisposable
Constructors
DriverRemoteConnection(IGremlinClient)
Initializes a new
Declaration
public DriverRemoteConnection(IGremlinClient client)
Parameters
Type | Name | Description |
---|---|---|
IGremlinClient | client | The IGremlinClient that will be used for the connection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when client is null. |
DriverRemoteConnection(IGremlinClient, String)
Initializes a new
Declaration
public DriverRemoteConnection(IGremlinClient client, string traversalSource)
Parameters
Type | Name | Description |
---|---|---|
IGremlinClient | client | The IGremlinClient that will be used for the connection. |
System.String | traversalSource | The name of the traversal source on the server to bind to. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when client is null. |
DriverRemoteConnection(String, Int32)
Initializes a new
Declaration
public DriverRemoteConnection(string host, int port)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | The host to connect to. |
System.Int32 | port | The port to connect to. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when client is null. |
DriverRemoteConnection(String, Int32, String)
Initializes a new
Declaration
public DriverRemoteConnection(string host, int port, string traversalSource)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | The host to connect to. |
System.Int32 | port | The port to connect to. |
System.String | traversalSource | The name of the traversal source on the server to bind to. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when client is null. |
Methods
Dispose()
Declaration
public void Dispose()
SubmitAsync<S, E>(Bytecode)
Submits
Declaration
public async Task<ITraversal<S, E>> SubmitAsync<S, E>(Bytecode bytecode)
Parameters
Type | Name | Description |
---|---|---|
Bytecode | bytecode | The |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ITraversal<S, E>> | A |
Type Parameters
Name | Description |
---|---|
S | |
E |