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