/// <summary> /// Creates instance with the specified proxied class and session. /// </summary> /// <param name="serviceName">Name of this service on the remote server.</param> /// <param name="session">Session to convey proxied method calls over.</param> /// <param name="callMessageHandler">Call handler for the RPC session.</param> public RpcProxy(string serviceName, RpcSession <TSession, TConfig> session, RpcCallMessageHandler <TSession, TConfig> callMessageHandler) : base(typeof(T)) { ServiceName = serviceName; _callMessageHandler = callMessageHandler; _session = (TSession)session; }
/// <summary> /// Create a RpcStream in reader mode. /// </summary> /// <param name="session">Session to write to.</param> public RpcByteTransport(RpcSession <TSession, TConfig> session, ushort id) { this.session = session; writer = new MqMessageWriter(this.session.Config); }