void loadConfig(bool forDeploy = false) { log("Loading client configuration"); clientConfigManager = new ClientConfigManager(); rootPath = workingDirectory; binPath = rootPath + "bin\\" + branch + "\\"; if (!System.IO.Directory.Exists(rootPath + "bin\\")) { System.IO.Directory.CreateDirectory(rootPath + "bin\\"); } if (!System.IO.Directory.Exists(rootPath + "bin\\" + branch + "\\")) { System.IO.Directory.CreateDirectory(rootPath + "bin\\" + branch + "\\"); } string buildconf = "build"; if (rootPath.Contains("buildagent2")) { buildconf = "build2"; } clientConfigManager.load(rootPath + "config\\" + (forDeploy ? branch : buildconf) + "_" + "usp" + ".axc"); // rootPath + "config\\" + clientConfig); log("Client configuration loaded"); log("Loading server configuration"); serverConfigManager = new ServerConfigManager(); serverConfigManager.load(clientConfigManager.ServerName, clientConfigManager.PortNumber); log("Server configuration loaded"); mgr = new AOSManager() { ServerName = clientConfigManager.ServerName, ServiceId = serverConfigManager.ServerServiceIdentifier, TimeOutMinutes = 10 }; if (forDeploy) { mgr.TimeOutMinutes = 30; } client = new ClientManager(); client.AXClientBinPath = clientConfigManager.ClientBinPath; client.AXServerBinPath = serverConfigManager.ServerBinPath; client.AXConfigurationFile = rootPath + "config\\" + (forDeploy ? branch : buildconf) + "_" + "usp" + ".axc"; // rootPath + "config\\" + clientConfig; client.ModelManifest = rootPath + branch + "\\" + modelName + "\\Model.xml"; client.TimeOutMinutes = 60; model = new ModelManager() { AOSName = serverConfigManager.AOSName, SchemaName = "temp" }; sqlManager = new SQLManager(); sqlManager.DatabaseName = serverConfigManager.DatabaseName; sqlManager.Server = serverConfigManager.DatabaseServer; labelManager = new LabelManager(); }