private void SwitchToDeploymentMode()
        {
            StopEverything();
            var yard = new ConstructionYard(_factory, _rootDir);

            _controller = yard.BuildDeploymentMode();
        }
 private void StopEverything()
 {
     if (_controller != null)
     {
         _controller.Stop();
         _controller.Dispose();
         _controller = null;
     }
     if (_webServer != null)
     {
         _webServer.Stop();
         _webServer.Dispose();
         _webServer = null;
     }
     _factory.CreateGarbage().Collect();
 }
 private void StopEverything()
 {
     if (_controller != null)
     {
         _controller.Stop();
         _controller.Dispose();
         _controller = null;
     }
     if (_webServer != null)
     {
         _webServer.Stop();
         _webServer.Dispose();
         _webServer = null;
     }
     _factory.CreateGarbage().Collect();
 }
Exemple #4
0
 public void SetController(IDeployerController controller)
 {
     _controller = controller;
 }
        public void Start()
        {
            var yard = new ConstructionYard(_factory, _rootDir);

            _controller = yard.BuildDeploymentMode();
        }
 public void Start()
 {
     var yard = new ConstructionYard(_factory, _rootDir);
     _controller = yard.BuildDeploymentMode();
 }
 private void SwitchToDeploymentMode()
 {
     StopEverything();
     var yard = new ConstructionYard(_factory, _rootDir);
     _controller = yard.BuildDeploymentMode();
 }
 public void SetController(IDeployerController controller)
 {
     _controller = controller;
 }