コード例 #1
0
        public PooledClient(string endpointList)
        {
            var endpoints = IpUtils.ParseEndpointList(endpointList);

            thriftFactory = new ThriftFactory <TSampleService.Iface>(endpoints, SocketTimeout,
                                                                     socket => new TSampleService.Client(new TBinaryProtocol(socket)));
        }
コード例 #2
0
ファイル: PooledClient.cs プロジェクト: vyakhir/thrift-utils
 public PooledClient(string endpointList)
 {
     var endpoints = IpUtils.ParseEndpointList(endpointList);
     thriftFactory = new ThriftFactory<TSampleService.Iface>(endpoints, SocketTimeout,
         socket => new TSampleService.Client(new TBinaryProtocol(socket)));
 }