Implemented a graceful disconnect and did some UI clean up

@davidfowl @mikary @abnanda1 
Right now, we are assuming that we will not be starting a brand new agent in the middle of a test, since we are focusing on auto mode. However, when we start dealing with manual mode, it is a scenario we will investigate.

Best,
Felicco Toney

Sent from my iPhone, please excuse any errors.

On Aug 15, 2014, at 10:08 AM, "mikary" <notifications@github.com<mailto:notifications@github.com>> wrote:


In src/Microsoft.AspNet.SignalR.DCrank.TestController/Angular/AngularController.js:

> @@ -463,12 +519,19 @@ function SignalRAngularCtrl($scope, signalRSvc, $rootScope) {
>          $scope.totalConnectionCount = currentCount;
>      }
>
> -    $scope.setState = function () {
> -        if ($scope.targetNumber === 0) {
> -            // Idle
> -            $scope.setUpNeeded = true;
> +    $scope.setState = function (applyingLoad) {


The parameter was removed from this method to accommodate the possibility of multiple agents being in different states. I.e. new agent connects during the test, or one of the agents finishes disconnecting before the others. As written this is likely to result in the UI rapidly flipping back and forth between states.

-
Reply to this email directly or view it on GitHub<https://github.com/SignalR/DCrank/pull/50/files#r16303092>.