public DGraphClient(Channel channel)
 {
     this.client = new Dgraph.DgraphClient(new DefaultCallInvoker(channel));
 }
 public DGraphClient(Dgraph.DgraphClient client)
 {
     this.client = client;
 }
        public DGraphClient(string host, int port, ChannelCredentials credentials)
        {
            Channel channel = new Channel(host, port, credentials);

            this.client = new Dgraph.DgraphClient(new DefaultCallInvoker(channel));
        }
Example #4
0
 public Transaction(Dgraph.DgraphClient client, TxnContext context, bool readOnly)
 {
     this.client   = client;
     this.context  = context;
     this.readOnly = readOnly;
 }