private void Execute(LoadBalanceState state, string serverName, IReportStatus status)
        {
            //var provider = new ApplicationRequestRoutingProvider(state, serverName);

            //var sequence = new ExecutionSequenceManager();
            //var webDeploy = new WebDeployOperator();
            //var server = new RemoteCompositeBuilder(new RemoteSequenceManager(new[] { _server }, null), new[] { _server }, webDeploy);
            //provider.Configure(server);
            //sequence.Execute(status);
        }
 private void Execute(LoadBalanceState state, IOfferRemoteOperations server, string serverNameToChangeStateOn)
 {
     server.ExecuteRemote.PowerShell(string.Format(@"import-module $env:temp\ApplicationRequestRouting; Set-WebFarmServerState -State {0} -Name {1} -UseDnsLookup;",
                      state.ToString(),
                      serverNameToChangeStateOn), o =>
                      {
                          o.WaitIntervalInSeconds(10);
                          o.RetryAttempts(20);
                      });
 }
 private void Execute(LoadBalanceState state, IOfferRemoteOperations server, string serverNameToChangeStateOn)
 {
     server.ExecuteRemote.PowerShell(string.Format(@"import-module $env:temp\ApplicationRequestRouting; Set-WebFarmServerState -State {0} -Name {1} -UseDnsLookup;",
                                                   state.ToString(),
                                                   serverNameToChangeStateOn), o =>
     {
         o.WaitIntervalInSeconds(10);
         o.RetryAttempts(20);
     });
 }
        private void Execute(LoadBalanceState state, string serverName, IReportStatus status)
        {
            //var provider = new ApplicationRequestRoutingProvider(state, serverName);

            //var sequence = new ExecutionSequenceManager();
            //var webDeploy = new WebDeployOperator();
            //var server = new RemoteCompositeBuilder(new RemoteSequenceManager(new[] { _server }, null), new[] { _server }, webDeploy);
            //provider.Configure(server);
            //sequence.Execute(status);
        }
 public ApplicationRequestRoutingProvider(LoadBalanceState state, string serverNameToChangeStateOn)
 {
     _state = state;
     _serverNameToChangeStateOn = serverNameToChangeStateOn;
 }
 public ApplicationRequestRoutingProvider(LoadBalanceState state, string serverNameToChangeStateOn)
 {
     _state = state;
     _serverNameToChangeStateOn = serverNameToChangeStateOn;
 }