Class GremlinServer
Represents a Gremlin Server.
Inherited Members
Namespace: Gremlin.Net.Driver
Assembly: Gremlin.Net.dll
Syntax
public class GremlinServer
Constructors
GremlinServer(string, int, bool, string?, string?)
Initializes a new instance of the GremlinServer class with the specified connection parameters.
Declaration
public GremlinServer(string hostname = "localhost", int port = 8182, bool enableSsl = false, string? username = null, string? password = null)
Parameters
Type | Name | Description |
---|---|---|
string | hostname | The hostname of the server. |
int | port | The port on which Gremlin Server can be reached. |
bool | enableSsl | Specifies whether SSL should be enabled. |
string | username | The username to submit on requests that require authentication. |
string | password | The password to submit on requests that require authentication. |
Properties
Password
Gets the password to submit on requests that require authentication.
Declaration
public string? Password { get; }
Property Value
Type | Description |
---|---|
string |
Uri
Gets the URI of the Gremlin Server.
Declaration
public Uri Uri { get; }
Property Value
Type | Description |
---|---|
Uri | The WebSocket Uri that the Gremlin Server responds to. |
Username
Gets the username to submit on requests that require authentication.
Declaration
public string? Username { get; }
Property Value
Type | Description |
---|---|
string |