问题

    void _UpdateFiles()
        {
            if (_vtUpdateFileInfos.Count == 0)
                return;

            this.Dispatcher.Invoke(new Action(() =>
            {

                object olock = new object();
                var count=0;
                foreach (var item in _vtUpdateFileInfos)
                {                 
                    _app.DownloadFileAsync("DataOutput", "DataOutput", _strServerVersion, item.FolderName + "/" + item.FileName, (nRecv, nPack) =>
                    {
                        new Task(() =>
                        {
                            Debug.Set("abc2", 12345);
                        }).Start();                                           
                    },
                    (eo, byteFileContext) =>
                    {                      
                    }
                    );
                }
                __UpdateXmlFile();
            }
            ));

           
        }


   this.Dispatcher.Invoke(new Action(() =>

此时 内部的Debug.Set 会一直延迟, 直到所有下载结束

posted on 2013-03-26 16:25  norsd  阅读(128)  评论(0编辑  收藏  举报

导航