public override bool Execute() { int num = base.Execute() ? 1 : 0; VCTaskNativeMethods.CloseHandle(this.cancelEvent); return(num != 0); }
public override bool Execute() { bool flag = base.Execute(); VCTaskNativeMethods.CloseHandle(this.cancelEvent); this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse); return(flag); }
protected VCToolTask(ResourceManager taskResources) : base(taskResources) { this.cancelEventName = "MSBuildConsole_CancelEvent" + Guid.NewGuid().ToString("N"); this.cancelEvent = VCTaskNativeMethods.CreateEventW(IntPtr.Zero, false, false, this.cancelEventName); this.logPrivate = new TaskLoggingHelper((ITask)this); this.logPrivate.TaskResources = AssemblyResources.PrimaryResources; this.logPrivate.HelpKeywordPrefix = "MSBuild."; this.IgnoreUnknownSwitchValues = false; }
protected VCToolTask(ResourceManager taskResources) : base(taskResources) { this.activeToolSwitchesValues = new Dictionary <string, ToolSwitch>(); this.activeToolSwitches = new Dictionary <string, ToolSwitch>(StringComparer.OrdinalIgnoreCase); this.values = new Dictionary <string, Dictionary <string, string> >(StringComparer.OrdinalIgnoreCase); this.additionalOptions = string.Empty; this.prefix = '/'; this.EnableErrorListRegex = true; this.errorListRegexList = new List <Regex>(); this.errorListRegexListExclusion = new List <Regex>(); this.lastMS = new MessageStruct(); this.currentMS = new MessageStruct(); this.cancelEventName = "MSBuildConsole_CancelEvent" + Guid.NewGuid().ToString("N"); this.cancelEvent = VCTaskNativeMethods.CreateEventW(IntPtr.Zero, false, false, this.cancelEventName); this.logPrivate = new TaskLoggingHelper(this); this.logPrivate.TaskResources = Microsoft.Build.Shared.AssemblyResources.PrimaryResources; this.logPrivate.HelpKeywordPrefix = "MSBuild."; this.IgnoreUnknownSwitchValues = false; }
public override void Cancel() { VCTaskNativeMethods.SetEvent(this.cancelEvent); }
public override void Cancel() { VCTaskNativeMethods.SetEvent(this.cancelEvent); this.PrintMessage(this.ParseLine(null), base.StandardOutputImportanceToUse); }