public virtual void OnDisconnect(SocketLinkSession session) { Flow.Publish(new LinkSessionDisconnected { LinkName = Name, Context = session }); }
void OnHeartbeatEvent(SocketLinkSession session, HeartbeatEvent e) { Timer.Cancel(session.HeartbeatTimeoutToken); session.HeartbeatTimeoutToken = Timer.Reserve(session, 15); }
public override void Close() { if (session == null) { return; } session.Close(); session = null; socket = null; }
public override void OnDisconnect(SocketLinkSession session) { Diag.DecrementConnectionCount(); base.OnDisconnect(session); }