示例#1
0
        public ClientCalls(int serverPort)
        {
            _clientFactory = new ClientFactory();

            // register generated IGenericCalculator<int> proxy, see MyGrpcProxies
            _clientFactory.AddGenericCalculatorInt32Client();

            _channel = new Channel("localhost", serverPort, ChannelCredentials.Insecure);
        }