Search Results for

    Show / Hide Table of Contents

    Interface IGremlinClient

    Provides a mechanism for submitting Gremlin requests.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Gremlin.Net.Driver
    Assembly: Gremlin.Net.dll
    Syntax
    public interface IGremlinClient : IDisposable

    Methods

    SubmitAsync<T>(RequestMessage, CancellationToken)

    Submits a request message as an asynchronous operation.

    Declaration
    Task<ResultSet<T>> SubmitAsync<T>(RequestMessage requestMessage, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    RequestMessage requestMessage

    The RequestMessage to send.

    CancellationToken cancellationToken

    The token to cancel the operation. The default value is None.

    Returns
    Type Description
    Task<ResultSet<T>>

    A ResultSet<T> containing the data and status attributes returned from the server.

    Type Parameters
    Name Description
    T

    The type of the expected results.

    Exceptions
    Type Condition
    ResponseException

    Thrown when a response is received from Gremlin Server that indicates that an error occurred.

    Extension Methods

    GremlinClientExtensions.SubmitAsync(IGremlinClient, RequestMessage, CancellationToken)
    GremlinClientExtensions.SubmitAsync(IGremlinClient, string, Dictionary<string, object>?, CancellationToken)
    GremlinClientExtensions.SubmitAsync<T>(IGremlinClient, string, Dictionary<string, object>?, CancellationToken)
    GremlinClientExtensions.SubmitWithSingleResultAsync<T>(IGremlinClient, RequestMessage, CancellationToken)
    GremlinClientExtensions.SubmitWithSingleResultAsync<T>(IGremlinClient, string, Dictionary<string, object>?, CancellationToken)
    In this article
    Back to top Copyright © 2018 The Apache Software Foundation