Merge pull request #11 from MicrosoftEdge/brheenanAllowCancel

Added CANCEL_PASS to cancel without creating trace
This commit is contained in:
Chris Hammer 2016-08-31 11:34:15 -07:00 коммит произвёл GitHub
Родитель af098b9cb3 4bd62ef64c
Коммит f86740af83
3 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -33,5 +33,6 @@ namespace Elevator
public const string START_BROWSER = "START_BROWSER";
public const string END_BROWSER = "END_BROWSER";
public const string END_PASS = "END_PASS";
public const string CANCEL_PASS = "CANCEL_PASS";
}
}

Просмотреть файл

@ -84,6 +84,7 @@ namespace Elevator
case Commands.START_BROWSER:
case Commands.END_BROWSER:
case Commands.END_PASS:
case Commands.CANCEL_PASS:
break;
default:
throw new Exception($"Unknown command encountered: {command}");

Просмотреть файл

@ -180,6 +180,10 @@ namespace Elevator
Console.WriteLine("{0}: Client test pass has ended.", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
isPassEnded = true;
break;
case Commands.CANCEL_PASS:
Console.WriteLine("{0}: Cancelling tracing.", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
wpr.CancelWPR();
break;
default:
throw new Exception($"Unknown command encountered: {command}");