Esempio n. 1
0
        public ModuleRuntimeSession Create()
        {
            ModuleRuntimeSession tmp = this.CreateImpl();

            if (tmp != null)
            {
                SessionManager.Instance.OnCreate(new SessionEventArgs(tmp.SessionId));
            }

            return(tmp);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 protected abstract bool UpdateImpl(ModuleRuntimeSession session);