@@ -30,17 +30,17 @@ public class ConnectionExample
3030
3131 static void Main ( )
3232 {
33- WithRemote ( ) ;
33+ WithRemoteConnection ( ) ;
3434 WithConf ( ) ;
3535 WithSerializer ( ) ;
3636 }
3737
3838 // Connecting to the server
39- static void WithRemote ( )
39+ static void WithRemoteConnection ( )
4040 {
4141 var server = new GremlinServer ( ServerHost , ServerPort ) ;
4242 using var remoteConnection = new DriverRemoteConnection ( new GremlinClient ( server ) , "g" ) ;
43- var g = Traversal ( ) . WithRemote ( remoteConnection ) ;
43+ var g = Traversal ( ) . With ( remoteConnection ) ;
4444
4545 // Simple query to verify connection
4646 var v = g . AddV ( VertexLabel ) . Iterate ( ) ;
@@ -53,7 +53,7 @@ static void WithConf()
5353 {
5454 using var remoteConnection = new DriverRemoteConnection ( new GremlinClient (
5555 new GremlinServer ( hostname : ServerHost , port : ServerPort , enableSsl : false , username : "" , password : "" ) ) , "g" ) ;
56- var g = Traversal ( ) . WithRemote ( remoteConnection ) ;
56+ var g = Traversal ( ) . With ( remoteConnection ) ;
5757
5858 var v = g . AddV ( VertexLabel ) . Iterate ( ) ;
5959 var count = g . V ( ) . HasLabel ( VertexLabel ) . Count ( ) . Next ( ) ;
@@ -66,7 +66,7 @@ static void WithSerializer()
6666 var server = new GremlinServer ( ServerHost , ServerPort ) ;
6767 var client = new GremlinClient ( server , new GraphSON3MessageSerializer ( ) ) ;
6868 using var remoteConnection = new DriverRemoteConnection ( client , "g" ) ;
69- var g = Traversal ( ) . WithRemote ( remoteConnection ) ;
69+ var g = Traversal ( ) . With ( remoteConnection ) ;
7070
7171 var v = g . AddV ( VertexLabel ) . Iterate ( ) ;
7272 var count = g . V ( ) . HasLabel ( VertexLabel ) . Count ( ) . Next ( ) ;
0 commit comments