private void FinishGame(List <Player> players) { SessionData.Clear(); modalContentEndResult.Setup(players); modal.Show(modalContentEndResult); }
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! }
//清理session public void Clear() { //释放引用,并清理缓存,包括释放协议对象等资源 PacketProtocol.Clear(); SessionData.Clear();//清理session数据 }
// ************************************** // URL: /Users/LogOut // ************************************** public ActionResult LogOut() { SignOutUser(); SessionData.Clear(); return(RedirectToAction("Login", "Users")); }
public void Clear() { PacketProtocol.Clear(); SessionData.Clear();//清理session数据 }