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); }
/// <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); }
public AdmissionControlEntity() { Channel channel = new Channel("ac.testnet.libra.org:8000", ChannelCredentials.Insecure); Client = new AdmissionControl.AdmissionControl.AdmissionControlClient(channel); }