Interface IRemoteConnection
A simple abstraction of a "connection" to a "server".
Namespace: Gremlin.Net.Process.Remote
Assembly: Gremlin.Net.dll
Syntax
public interface IRemoteConnection
Properties
IsSessionBound
Determines if the connection is bound to a session.
Declaration
bool IsSessionBound { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
SubmitAsync<TStart, TEnd>(Bytecode, CancellationToken)
Submits ITraversalBytecode to a server and returns a ITraversal.
Declaration
Task<ITraversal<TStart, TEnd>> SubmitAsync<TStart, TEnd>(Bytecode bytecode, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Bytecode | bytecode | The Bytecode to send. |
| CancellationToken | cancellationToken | The token to cancel the operation. The default value is None. |
Returns
| Type | Description |
|---|---|
| Task<ITraversal<TStart, TEnd>> | The ITraversal with the results and optional side-effects. |
Type Parameters
| Name | Description |
|---|---|
| TStart | |
| TEnd |
Tx(GraphTraversalSource)
Creates a RemoteTransaction in the context of a GraphTraversalSource designed to work with remote semantics.
Declaration
RemoteTransaction Tx(GraphTraversalSource graphTraversalSource)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphTraversalSource | graphTraversalSource | The GraphTraversalSource providing the context for the RemoteTransaction. |
Returns
| Type | Description |
|---|---|
| RemoteTransaction | The created RemoteTransaction. |