private void ThreadWatcher_DownloadStart(ThreadWatcher watcher, DownloadStartEventArgs args)
        {
            DownloadProgressInfo info = new DownloadProgressInfo();

            info.DownloadID = args.DownloadID;
            info.Url        = args.Url;
            info.TryNumber  = args.TryNumber;
            info.StartTicks = TickCount.Now;
            info.TotalSize  = args.TotalSize;
            lock (_downloadProgresses) {
                _downloadProgresses[args.DownloadID] = info;
            }
        }
Esempio n. 2
0
 private void OnDownloadStart(DownloadStartEventArgs e)
 {
     try { DownloadStart?.Invoke(this, e); } catch { }
 }