internal static _GremlinServer WithUri(this _GremlinServer server, Uri uri) { if (!string.IsNullOrEmpty(uri.AbsolutePath) && uri.AbsolutePath != "/") { throw new ArgumentException($"The {nameof(Uri)} may not contain an {nameof(Uri.AbsolutePath)}.", nameof(uri)); } return(new _GremlinServer( uri.Host, uri.Port, uri.IsSslEnabled(), server.Username, server.Password)); }
public static Gremlin.Net.Driver.GremlinServer WithUsername(this Gremlin.Net.Driver.GremlinServer server, string username) { }
public static Gremlin.Net.Driver.GremlinServer WithSslEnabled(this Gremlin.Net.Driver.GremlinServer server, bool sslEnabled) { }
public static Gremlin.Net.Driver.GremlinServer WithPort(this Gremlin.Net.Driver.GremlinServer server, int port) { }
public static Gremlin.Net.Driver.GremlinServer WithPassword(this Gremlin.Net.Driver.GremlinServer server, string password) { }
public static Gremlin.Net.Driver.GremlinServer WithHost(this Gremlin.Net.Driver.GremlinServer server, string host) { }
public static _GremlinServer WithHost(this _GremlinServer server, string host) => new _GremlinServer( host, server.Uri.Port, server.IsSslEnabled(), server.Username, server.Password);
public static _GremlinServer WithSslEnabled(this _GremlinServer server, bool sslEnabled) => new _GremlinServer( server.Uri.Host, server.Uri.Port, sslEnabled, server.Username, server.Password);
public static _GremlinServer WithPassword(this _GremlinServer server, string password) => new _GremlinServer( server.Uri.Host, server.Uri.Port, server.IsSslEnabled(), server.Username, password);
public static _GremlinServer WithUsername(this _GremlinServer server, string username) => new _GremlinServer( server.Uri.Host, server.Uri.Port, server.IsSslEnabled(), username, server.Password);
public static _GremlinServer WithPort(this _GremlinServer server, int port) => new _GremlinServer( server.Uri.Host, port, server.IsSslEnabled(), server.Username, server.Password);