public static IServerManager GetServer(string serverName, string parameters = null) { NamedValues <ZValue> parameters2 = ParseParameters(parameters); bool test = WebData.GetTestValue(parameters2); InitServers(test); return(ServerManagers_v2.Get(serverName)); }
public static DownloadAutomateManager CreateDownloadAutomateManagerWithServers(string parameters = null) { //NamedValues<ZValue> parameters2 = NamedValues.ParseValues(parameters); NamedValues <ZValue> parameters2 = ParseParameters(parameters); bool test = WebData.GetTestValue(parameters2); DownloadAutomateManagerCreator downloadAutomateManagerCreator = GetDownloadAutomateManagerCreator(parameters2, test); DownloadAutomateManager downloadAutomateManager = downloadAutomateManagerCreator.Create(); //InitServers(test); InitServers_v2(test); downloadAutomateManager.AddServerManagers(downloadAutomateManagerCreator.CreateServerManagers()); return(downloadAutomateManager); }