예제 #1
0
 internal Client(Type serviceType, ClientConfig config, ObjectPool <IChannel> channelPool, ClientInvoker clientInvoker)
 {
     //Console.WriteLine("Client ctor");
     _serviceType   = serviceType;
     _timeOut       = TimeSpan.FromSeconds(config.TimeOut);
     _rpcSerializer = config.RpcSerializer;
     _channelPool   = channelPool;
     _clientInvoker = clientInvoker;
 }
예제 #2
0
 internal ClientHandler(ClientInvoker clientInvoker, IRpcSerializer rpcSerializer)
 {
     _clientInvoker = clientInvoker;
     _rpcSerializer = rpcSerializer;
 }