예제 #1
0
        private void FinishGame(List <Player> players)
        {
            SessionData.Clear();

            modalContentEndResult.Setup(players);
            modal.Show(modalContentEndResult);
        }
예제 #2
0
 public void Dispose()
 {
     foreach (var abo in _event_abos.Values)
     {
         abo.Event.OnUnregister();
     }
     _event_abos.Clear();
     if (_event_timer != null)
     {
         _event_timer.Dispose();
     }
     if (_consistency_check_timer != null)
     {
         _consistency_check_timer.Dispose();
     }
     _active_commands.Clear();
     SessionData.Clear();
     //Commands.Clear(); // must not be cleared!
     //Events.Clear(); // must not be cleared!
 }
예제 #3
0
 //清理session
 public void Clear()
 {
     //释放引用,并清理缓存,包括释放协议对象等资源
     PacketProtocol.Clear();
     SessionData.Clear();//清理session数据
 }
예제 #4
0
        // **************************************
        // URL: /Users/LogOut
        // **************************************

        public ActionResult LogOut()
        {
            SignOutUser();
            SessionData.Clear();
            return(RedirectToAction("Login", "Users"));
        }
예제 #5
0
 public void Clear()
 {
     PacketProtocol.Clear();
     SessionData.Clear();//清理session数据
 }