public ClientConnectionManager(
     ClientBuilder builder)
 {
     this.builder     = builder;
     this.token       = null;
     this.lstChannels = new List <ManagedChannel>();
 }
Example #2
0
        public IClient SetAddress(params string[] address)
        {
            clientBuilder = new ClientBuilder();
            clientBuilder.EndPoints(address);
            LoadUrlLunXun loadUrlLunXun = new LoadUrlLunXun();

            clientBuilder.LoadBalancerFactory(loadUrlLunXun);
            loadUrlLunXun.EndPoint = clientBuilder.EndPoints();
            client = clientBuilder.Build();
            return(client);
        }