public void ThrottleNotifyProgress(ThrottleNotifyProgress notify) { Console.WriteLine("[ProgressManager] ThrottleNotifyProgress"); var keys = _notificationqueue.Keys; foreach (string key in keys) { Download download; if (!_notificationqueue.TryRemove (key, out download)) { continue; } Progress progress; if (!_progresses.TryGetValue (download.Url, out progress)) { continue; } progress.Notify (download); } }
public void ThrottleNotifyProgress(ThrottleNotifyProgress notify) { Console.WriteLine("[ProgressManager] ThrottleNotifyProgress"); var keys = _notificationqueue.Keys; foreach (string key in keys) { Download download; if (!_notificationqueue.TryRemove(key, out download)) { continue; } Progress progress; if (!_progresses.TryGetValue(download.Url, out progress)) { continue; } progress.Notify(download); } }