Implemented a graceful disconnect and did some UI clean up

@davidfowl @mikary @abnanda1 
If you look at the agent code, the applying load flag is changed to false as soon as the command is received, not after all the disconnects are completed, because of the varying disconnect speeds that we have noticed.

Best,
Felicco Toney

Sent from my iPhone, please excuse any errors.

On Aug 15, 2014, at 10:14 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) {


I'm talking about the stop case as well. Each agent changes its ApplyingLoad state when it finishes disconnecting. Multiple agents are more than likely going to finish disconnecting at different times.

-
Reply to this email directly or view it on GitHub<https://github.com/SignalR/DCrank/pull/50/files#r16303377>.