Exemplo n.º 1
0
        /// <summary>
        /// 建構式
        /// </summary>
        public MessageProcessor()
        {
            msgFuncList = new Dictionary <int, MsgFunction>();

            msgFunc = new MessageFunction();

            msgQ = new DoubleQueue <MsgInfo>();

            this.qTimer           = new System.Timers.Timer();
            this.qTimer.AutoReset = false;
            this.qTimer.Interval  = 100;
            this.qTimer.Enabled   = false;
            this.qTimer.Elapsed  += this.ProcessMsg;
        }