Table of Contents

Interface IRemoteConnection

Namespace
Gremlin.Net.Process.Remote
Assembly
Gremlin.Net.dll

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

bool

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 Bytecode

The Bytecode to send.

cancellationToken CancellationToken

The 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 GraphTraversalSource

The GraphTraversalSource providing the context for the RemoteTransaction.

Returns

RemoteTransaction

The created RemoteTransaction.