public LoadBalancerModel()
        {
            algoFactory      = new ILBAlgorithmFactory();
            currentAlgorithm = null;

            InitLoadBalancer();
            InitServers();
            DoHealthCheck();
        }
        private Server DetermineAlgorithm()
        {
            ILBAlgorithm algo = currentAlgorithm;

            if (algo == null || (SelectedMethodString != PreviousAlgoString))
            {
                algo = currentAlgorithm = algoFactory.GetAlgorithm(SelectedMethodString);
                PreviousAlgoString = SelectedMethodString;
            }

            return(algo.GetServer(servers.Where((x) => x.ALIVE == true).ToList()));
        }