Example #1
0
        /// <summary>
        /// 初始化异步队列
        /// </summary>
        private void InitAsyncQueue(DwonloadEntity item)
        {
            MeterInfo info = new MeterInfo();

            info.entity = item;
            DownloadFile(item);
            AsyncQueues.Enqueue(new MeterAsyncQueue()
            {
                MeterInfoTask = info
            });
        }
Example #2
0
 public MeterAsyncQueue()
 {
     MeterInfoTask = new MeterInfo();
 }