Exemple #1
0
        public LibraClient(LibraNetwork network)
        {
            this.Network = network;

            switch (network)
            {
            case LibraNetwork.Testnet:
                Host = Constant.ServerHosts.TestnetAdmissionControl;
                Port = 80;
                ChannelCredentials = ChannelCredentials.Insecure;
                FaucetServerHost   = Constant.ServerHosts.TestnetFaucet;
                break;
            }

            Channel channel = new Channel(Host, Port, ChannelCredentials);

            acClient = new AdmissionControlClient(channel);
        }
Exemple #2
0
 /// <summary>
 /// The Main method Initialize
 /// </summary>
 /// <param name="host">ac.testnet.libra.org</param>
 /// <param name="port">8000 or 30307</param>
 public LibraAdmissionControlService(string host, int port)
 {
     _channel = new Channel(host, port, ChannelCredentials.Insecure);
     _client  = new AdmissionControlClient(_channel);
 }
Exemple #3
0
        public AdmissionControlEntity()
        {
            Channel channel = new Channel("ac.testnet.libra.org:8000", ChannelCredentials.Insecure);

            Client = new AdmissionControl.AdmissionControl.AdmissionControlClient(channel);
        }