Esempio n. 1
0
        public IRemoteConnection CreateRemoteConnection()
        {
            var c = new DriverRemoteConnection(JanusGraphClientBuilder
                                               .BuildClientForServer(new GremlinServer(_host, _port)).WithSerializer(_serializer).Create());

            _connections.Add(c);
            return(c);
        }
        public IRemoteConnection CreateRemoteConnection(string traversalSource = "gods_traversal")
        {
            var c = new DriverRemoteConnection(
                JanusGraphClientBuilder.BuildClientForServer(new GremlinServer(_host, _port)).Create(),
                traversalSource);

            _connections.Add(c);
            return(c);
        }