OSDN Git Service

AppliStation-all,NaGetTaskクラスをTaskクラスに改名他
[applistation/AppliStation.git] / na-get-lib / NaGet.Tasks / Task.cs
1 using System;\r
2 \r
3 namespace NaGet.Tasks\r
4 {\r
5         /// <summary>\r
6         /// NaGet\82Ì\83R\83}\83\93\83h\83^\83X\83N\82Ì\92\8a\8fÛ\83N\83\89\83X\r
7         /// </summary>\r
8         public abstract class Task\r
9         {\r
10                 /// <summary>\r
11                 /// \8eÀ\8ds\82·\82é\r
12                 /// </summary>\r
13                 public abstract void Run();\r
14                 \r
15                 /// <summary>\r
16                 /// \8eÀ\8ds\8fó\91Ô\82©\94Û\82©\82ð\93¾\82é\r
17                 /// </summary>\r
18                 public abstract bool Running {\r
19                         get;\r
20                 }\r
21                 \r
22                 /// <summary>\r
23                 /// \8fI\97¹\82µ\82Ä\82¢\82é\82©\94Û\82©\81B\r
24                 /// </summary>\r
25                 public abstract bool Done {\r
26                         get;\r
27                 }\r
28                 \r
29                 /// <summary>\r
30                 /// \83L\83\83\83\93\83Z\83\8b\89Â\94\\82©\94Û\82©\82ð\95Ô\82·\r
31                 /// </summary>\r
32                 public virtual bool Cancelable {\r
33                         get { return false; }\r
34                 }\r
35                 \r
36                 /// <summary>\r
37                 /// \92\86\92f\82³\82¹\82é\r
38                 /// </summary>\r
39                 /// <returns>\90¬\8c÷\82µ\82½\82©\82¢\82È\82©</returns>\r
40                 public virtual bool Cancel()\r
41                 {\r
42                         return false;\r
43                 }\r
44         }\r
45 }\r