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(); }
public void SetController(IDeployerController controller) { _controller = controller; }
public void Start() { var yard = new ConstructionYard(_factory, _rootDir); _controller = yard.BuildDeploymentMode(); }