示例#1
0
 public virtual void OnDisconnect(SocketLinkSession session)
 {
     Flow.Publish(new LinkSessionDisconnected {
         LinkName = Name,
         Context = session
     });
 }
示例#2
0
 void OnHeartbeatEvent(SocketLinkSession session, HeartbeatEvent e)
 {
     Timer.Cancel(session.HeartbeatTimeoutToken);
     session.HeartbeatTimeoutToken = Timer.Reserve(session, 15);
 }
示例#3
0
        public override void Close()
        {
            if (session == null)
            {
                return;
            }

            session.Close();

            session = null;
            socket = null;
        }
示例#4
0
        public override void OnDisconnect(SocketLinkSession session)
        {
            Diag.DecrementConnectionCount();

            base.OnDisconnect(session);
        }