Merge pull request #11 from MicrosoftEdge/brheenanAllowCancel
Added CANCEL_PASS to cancel without creating trace
This commit is contained in:
Коммит
f86740af83
|
@ -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}");
|
||||
|
|
Загрузка…
Ссылка в новой задаче