Exemplo n.º 1
0
        public override RpcClientTransaction CreateTransaction(RpcRequest request)
        {
            int n       = _lc.Next();
            var wrapper = _connections[n];
            var sock    = wrapper.GetSocket();

            if (sock == null)
            {
                throw new RpcException(RpcErrorCode.ConnectionPending, _serverUri.ToString(), "no SimplexConnection available", null);
            }
            var tx = RpcTcpTransactionManager.CreateClientTransaction(_serverUri, sock, request);

            return(tx);
        }
Exemplo n.º 2
0
        public override RpcClientTransaction CreateTransaction(RpcRequest request)
        {
            RpcTcpClientTransaction trans = RpcTcpTransactionManager.CreateClientTransaction(_sock.RemoteUri, _sock, request);

            return(trans);
        }