Пример #1
0
 public static _GremlinServer WithHost(this _GremlinServer server, string host) => new _GremlinServer(
     host,
     server.Uri.Port,
     server.IsSslEnabled(),
     server.Username,
     server.Password);
Пример #2
0
 public static _GremlinServer WithUsername(this _GremlinServer server, string username) => new _GremlinServer(
     server.Uri.Host,
     server.Uri.Port,
     server.IsSslEnabled(),
     username,
     server.Password);
Пример #3
0
 public static _GremlinServer WithPassword(this _GremlinServer server, string password) => new _GremlinServer(
     server.Uri.Host,
     server.Uri.Port,
     server.IsSslEnabled(),
     server.Username,
     password);
Пример #4
0
 public static _GremlinServer WithPort(this _GremlinServer server, int port) => new _GremlinServer(
     server.Uri.Host,
     port,
     server.IsSslEnabled(),
     server.Username,
     server.Password);