Exemplo n.º 1
0
        public void Pause()
        {
            if (State != SessionState.Started &&
                State != SessionState.Resumed)
            {
                throw new SessionStateException("The session is not running.");
            }

            State = SessionState.Paused;

            _heartbeat.StopDispatcher();
        }
Exemplo n.º 2
0
        public void Pause()
        {
            if (State != SessionState.Started &&
                State != SessionState.Resumed && State != SessionState.Banned)
            {
                throw new SessionStateException("The session is not running.");
            }

            State = SessionState.Paused;

            if (Configuration.EnableHeartbeat)
            {
                Heartbeat.StopDispatcher();
            }
        }
Exemplo n.º 3
0
 public void Shutdown()
 {
     _heartbeat.StopDispatcher();
 }