Esempio n. 1
0
 public RpcClientTransaction(ServerUri uri, RpcRequest request)
 {
     ServerUri = uri;
     Request   = request;
 }
Esempio n. 2
0
 public override RpcClientTransaction CreateTransaction(ServerUri serverUri, RpcRequest request)
 {
     return(new RpcInprocClientTransaction(request));
 }
Esempio n. 3
0
 public override RpcClientTransaction CreateTransaction(ServerUri serverUri, RpcRequest request)
 {
     return(new RpcPipeClientTransaction(this, (NamedPipeUri)serverUri, request));
 }
Esempio n. 4
0
 /// <summary>
 ///		接口支持服务: 创建Transaction
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public RpcClientTransaction CreateTransaction(RpcRequest request)
 {
     return(_connection.CreateTransaction(request));
 }
Esempio n. 5
0
 public override RpcClientTransaction CreateTransaction(ServerUri serverUri, RpcRequest request)
 {
     IICAssert.IsInstanceOfType(serverUri, typeof(HttpUri));
     return(new RpcHttpClientTransaction(this, (HttpUri)serverUri, request));
 }
Esempio n. 6
0
 public RpcTcpServerTransaction(RpcServerChannel channel, RpcConnection conn, RpcTcpSocketConnection socket, RpcRequest request, int sequence)
     : base(channel, conn, request)
 {
     _sock    = socket;
     Sequence = sequence;
 }
Esempio n. 7
0
 public RpcPipeClientTransaction(RpcPipeClientChannel channel, NamedPipeUri serverUri, RpcRequest request)
     : base(serverUri, request)
 {
     _channel = channel;
 }
Esempio n. 8
0
        public static RpcTcpClientTransaction CreateClientTransaction(ServerUri serverUri, RpcTcpSocketConnection sock, RpcRequest request)
        {
            var tx = new RpcTcpClientTransaction(serverUri, sock, request);

            return(tx);
        }
Esempio n. 9
0
 /// <summary>创建一个RpcTransaction</summary>
 /// <param name="request">请求实体类</param>
 /// <returns>Trans</returns>
 public abstract RpcClientTransaction CreateTransaction(RpcRequest request);
Esempio n. 10
0
 public RpcInprocClientTransaction(RpcRequest request)
     : base(InprocUri.Instance, request)
 {
 }
Esempio n. 11
0
        public override RpcClientTransaction CreateTransaction(RpcRequest request)
        {
            RpcTcpClientTransaction tx = RpcTcpTransactionManager.CreateClientTransaction(RemoteUri, _socket, request);

            return(tx);
        }
Esempio n. 12
0
 public RpcServerTransaction(RpcServerChannel channel, RpcConnection conn, RpcRequest request)
 {
     _connection = conn;
     _channel    = channel;
     _request    = request;
 }
Esempio n. 13
0
 protected void SetRequest(RpcRequest request)
 {
     _request = request;
 }
Esempio n. 14
0
        public RpcBatchClientTransaction CreateTransaction(ServerUri uri, RpcRequest request)
        {
            RpcBatchClientTransaction tx = new RpcBatchClientTransaction(uri, request, this);

            return(tx);
        }
Esempio n. 15
0
 public override RpcClientTransaction CreateTransaction(RpcRequest request)
 {
     return(_channel.CreateTransaction(_serverUri, request));
 }
Esempio n. 16
0
 public RpcBatchClientTransaction(ServerUri uri, RpcRequest request, RpcClientBatchManager manager)
     : base(uri, request)
 {
     _manager = manager;
 }