/// <summary> /// 连接断开 /// </summary> /// <param name="reason"></param> protected override void OnSessionClosed(CloseReason reason) { this.Log($"远程连接断开 IP-Prot:{RemoteEndPoint.ToString()}、ID:{SessionID}"); //释放所有的任务 RemoteCallQueue.ErrorEmpty("远程对象被关闭 原因:" + reason); base.OnSessionClosed(reason); }
/// <summary> /// session /// </summary> public RRPCSession() { ForwardingRequestQueue = new ForwardingRequestQueue(); RemoteCallQueue = new RemoteCallQueue(); Identifications = new Dictionary <string, object>(); }