Esempio n. 1
0
 public static void StopWoking()
 {
     HZLogger.Info(string.Format("队列停止工作 还有{0}个任务未完成", QueueTasks.Count));
     _workNotOver = false;
     QueueTasks = new Queue<IQueueTask>();
     QueueTaskEvent.Set();
 }
Esempio n. 2
0
        public void Do()
        {
            string message = string.Empty;

            try
            {
                message = string.Format(" QueueTask Done. Data:{0}", this.Data);
                HZLogger.Info(message);
            }
            catch (FormatException exp)
            {
                HZLogger.Error(exp);
            }
            catch (Exception exp)
            {
                HZLogger.Error(exp);
            }
        }