private void Deploy(bool startInstances) { ZooKeeperDeployer.DeployInstances(Instances); if (startInstances) { Start(); } }
private void Deploy(bool startInstances) { try { ZooKeeperDeployer.DeployInstances(Instances); if (startInstances) { Start(); } } catch (Exception error) { log.Error(error, "Error in starting. Will try to stop."); Dispose(); throw; } }