public override void Read(ConsoleReadContext context, FolderTaskParameter param) { var value = UtilConsole.ReadFolder(param.Label, param.ShouldExist); if (string.IsNullOrEmpty(value)) { context.IsCanceled = true; return; } context[param.Name] = value; }