Class DriverRemoteConnection
A
Inheritance
System.Object
DriverRemoteConnection
Implements
System.IDisposable
Namespace: Gremlin.Net.Driver.Remote
Assembly: cs.temp.dll.dll
Syntax
public class DriverRemoteConnection : IRemoteConnection, IDisposable
Constructors
DriverRemoteConnection(IGremlinClient, String)
Initializes a new
Declaration
public DriverRemoteConnection(IGremlinClient client, string traversalSource = "g")
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 or the traversalSource is null. |
DriverRemoteConnection(String, Int32, String, ILoggerFactory)
Initializes a new
Declaration
public DriverRemoteConnection(string host, int port, string traversalSource = "g", ILoggerFactory loggerFactory = null)
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. |
ILoggerFactory | loggerFactory | A factory to create loggers. If not provided, then nothing will be logged. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when client is null. |
Properties
IsSessionBound
Declaration
public bool IsSessionBound { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Dispose()
Declaration
public void Dispose()
SubmitAsync<S, E>(Bytecode, CancellationToken)
Submits
Declaration
public async Task<ITraversal<S, E>> SubmitAsync<S, E>(Bytecode bytecode, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Bytecode | bytecode | The |
CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ITraversal<S, E>> | A |
Type Parameters
Name | Description |
---|---|
S | |
E |
Tx(GraphTraversalSource)
Declaration
public RemoteTransaction Tx(GraphTraversalSource g)
Parameters
Type | Name | Description |
---|---|---|
GraphTraversalSource | g |
Returns
Type | Description |
---|---|
RemoteTransaction |
Implements
System.IDisposable