Пример #1
0
        /// <summary>
        /// 类默认构造器
        /// </summary>
        internal OnlineUserRecorder()
        {
            this.m_db = new OnlineUserDB();

            // 初始化命令队列
            this.m_cmdQueueA = new Queue <OnlineUserCmdBase>();
            this.m_cmdQueueX = new Queue <OnlineUserCmdBase>();
        }
Пример #2
0
 /// <summary>
 /// 类参数构造器
 /// </summary>
 /// <param name="db">在线用户数据库</param>
 /// <param name="currUser">当前被删除的用户</param>
 public OnlineUserDeleteCmd(OnlineUserDB db, OnlineUser currUser)
     : base(db, currUser)
 {
 }
Пример #3
0
 /// <summary>
 /// 类参数构造器
 /// </summary>
 /// <param name="db">在线用户数据库</param>
 /// <param name="currUser">当前用户</param>
 public OnlineUserCmdBase(OnlineUserDB db, OnlineUser currUser)
 {
     this.OnlineUserDB = db;
     this.CurrentUser  = currUser;
 }
Пример #4
0
 /// <summary>
 /// 类参数构造器
 /// </summary>
 /// <param name="db">在线用户数据库</param>
 /// <param name="currUser">当前插入的新用户</param>
 public OnlineUserInsertCmd(OnlineUserDB db, OnlineUser currUser)
     : base(db, currUser)
 {
 }