public void Dispose()
        {
            if (CancellationTokenSourceDurationTest != null)
            {
                CancellationTokenSourceDurationTest.Cancel();
            }

            if (TaskStartDurationTest != null)
            {
                TaskStartDurationTest.Dispose();
            }

            if (CancellationTokenSourceAppDomainTask != null)
            {
                CancellationTokenSourceAppDomainTask.Cancel();
            }

            if (AppDomainTask != null)
            {
                AppDomainTask.Dispose();
            }

            if (FiddlerCapture != null)
            {
                FiddlerCapture.Dispose();
            }

            Settings.Default.NumberOfManagers = NumberOfManagers;
            Settings.Default.NumberOfNodes    = NumberOfNodes;

            Settings.Default.Save();
        }
        public void ShutDownConsoleHost()
        {
            if (CancellationTokenSourceAppDomainTask != null)
            {
                CancellationTokenSourceAppDomainTask.Cancel();
            }

            if (AppDomainTask != null)
            {
                AppDomainTask.Dispose();
            }

            IsConsoleHostStarted = false;
        }