Example #1
0
 public override void SendResponse(RpcResponse response)
 {
     _response = response;
     if (response.BodyBuffer != null)
     {
         response.BodyBuffer.TextError = true;
     }
     _sock.Send(this);
 }
Example #2
0
 public override void SendRequest(Action callback, int timeout)
 {
     _callback = callback;
     if (_sock == null)
     {
         Callback(RpcResponse.Create(RpcErrorCode.ConnectionPending, null));
     }
     else
     {
         Timeout = timeout;
         RpcTcpTransactionManager.BeginTransaction(this);
         _sock.Send(this);
     }
 }