public void NotifyProgress(NotifyProgress notify) { Console.WriteLine("[ProgressManager] NotifyProgress"); Console.WriteLine("[ProgressManager] NotifyProgress Url : {0}", notify.Url); Console.WriteLine("[ProgressManager] NotifyProgress Id : {0}", notify.Download.Id); Console.WriteLine("[ProgressManager] NotifyProgress Total : {0}", notify.Download.Total); Console.WriteLine("[ProgressManager] NotifyProgress Written : {0}", notify.Download.Written); _notificationqueue.AddOrUpdate(notify.Url, notify.Download, (url, download) => { return(download.LastModified > notify.Download.LastModified ? download : notify.Download); }); }
public void NotifyProgress(NotifyProgress notify) { Console.WriteLine("[ProgressManager] NotifyProgress"); Console.WriteLine("[ProgressManager] NotifyProgress Url : {0}", notify.Url); Console.WriteLine("[ProgressManager] NotifyProgress Id : {0}", notify.Download.Id); Console.WriteLine("[ProgressManager] NotifyProgress Total : {0}", notify.Download.Total); Console.WriteLine("[ProgressManager] NotifyProgress Written : {0}", notify.Download.Written); _notificationqueue.AddOrUpdate (notify.Url, notify.Download, (url, download) => { return download.LastModified > notify.Download.LastModified ? download : notify.Download; }); }