using System; using System.Collections.Generic; using System.Collections.ObjectModel; using NaGet.Tasks; namespace NaGet.SubCommands { public delegate NaGetTaskQueryResult NaGetTaskQueryHandler(object sender, NaGetTaskQueryArgs e); public class NaGetTaskQueryArgs { /// /// タスクの現況のメッセージ /// public string Message; /// /// 回答の種類のフラグ /// public NaGetTaskQueryResult SelectionFlag; public NaGetTaskQueryArgs(string message, NaGetTaskQueryResult selectionFlag) { this.Message = message; this.SelectionFlag = selectionFlag; } } /// /// 質問の答え /// [Flags()] public enum NaGetTaskQueryResult : uint { /// /// 継続(=OK) /// CONTINUE = 0x01, /// /// 再試行 /// RETRY = 0x02, /// /// キャンセル、中止 /// CANCEL = 0x04, /// /// 自動的なキャンセル(ユーザの手ではないもの) /// CANCELED_AUTOMATICALLY = 0x00, } }