예제 #1
0
        /// <summary>
        /// 處理訊息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ProcessMsg(Object sender, EventArgs e)
        {
            qTimer.Stop();

            Queue <MsgInfo> mainQ = msgQ.GetMainQueue();

            while (mainQ.Any())
            {
                MsgInfo info = mainQ.Dequeue();

                info.Send(MessageDispatch(info.msg));
            }

            qTimer.Start();
        }