public ModuleRuntimeSession Create() { ModuleRuntimeSession tmp = this.CreateImpl(); if (tmp != null) { SessionManager.Instance.OnCreate(new SessionEventArgs(tmp.SessionId)); } return(tmp); }
public bool Update(Session session) { if (session != null) { ModuleRuntimeSession tmp = session as ModuleRuntimeSession; if (tmp != null && UpdateImpl(tmp)) { SessionManager.Instance.OnUpdate(new SessionEventArgs(session.SessionId)); return(true); } } return(false); }
protected abstract bool UpdateImpl(ModuleRuntimeSession session);