OSDN Git Service

AppliStation-all,NaGetTaskクラスをTaskクラスに改名他
[applistation/AppliStation.git] / na-get-lib / NaGet.SubCommands / NaGetUpdate.cs
index 6d2c8b6..2a0c5a8 100644 (file)
@@ -4,6 +4,7 @@ using NaGet.Packages;
 using NaGet.Packages.Install;\r
 using NaGet.Net;\r
 using NaGet.SubCommands;\r
+using NaGet.Tasks;\r
 \r
 namespace NaGet.SubCommands\r
 {\r
@@ -26,8 +27,8 @@ namespace NaGet.SubCommands
                                if (downloader == null) {\r
                                        downloader = new Downloader();\r
                                        downloader.DownloadEventRaised += delegate(object sender, DownloadEventArgs e) {\r
-                                               if (e.Type == DownloadEventType.DOWNLOADING && e.TaskProgressPercent > 0) {\r
-                                                       RaiseTaskSetEvent(NaGetTaskSetEventType.PING, string.Empty, GetProgressPercent(NaGetTaskSetEventType.PING, e.TaskProgressPercent));\r
+                                               if (e.Type == DownloadEventType.DOWNLOADING && e.ProgressPercent > 0) {\r
+                                                       RaiseTaskSetEvent(NaGetTaskSetEventType.PING, string.Empty, GetProgressPercent(NaGetTaskSetEventType.PING, e.ProgressPercent));\r
                                                }\r
                                        };\r
                                }\r
@@ -86,7 +87,7 @@ namespace NaGet.SubCommands
                                        packageListsDownloaded = false;\r
                                        try {\r
                                                runDownloadPackageLists();\r
-                                       } catch (NaGetTaskCanceledException) {\r
+                                       } catch (TaskCanceledException) {\r
                                                RaiseTaskSetEvent(NaGetTaskSetEventType.WARNING, "リストのダウンロード処理がキャンセルされました");\r
                                                pkgListMan.LoadPackageLists();\r
                                        } catch (System.Net.WebException e) {\r