public static DownloadManagerClientBase CreateDownloadManagerClient(XElement xe, bool useTestManager = false) { DownloadManagerClientBase downloadManagerClient = null; if (!useTestManager) { //downloadManagerClient = new DownloadManagerClient(XmlConfig.CurrentConfig.GetExplicit("DownloadAutomateManager/DownloadManagerClient/Address")); downloadManagerClient = new DownloadManagerClient(xe.zXPathExplicitValue("DownloadManagerClient/Address")); } else { downloadManagerClient = new DownloadManagerClientTest(@"c:\pib\_dl\_pib\dl"); } return(downloadManagerClient); }
public static DownloadManagerClientBase CreateDownloadManagerClient(XElement xe, bool useTestManager = false) { DownloadManagerClientBase downloadManagerClient = null; if (!useTestManager) //downloadManagerClient = new DownloadManagerClient(XmlConfig.CurrentConfig.GetExplicit("DownloadAutomateManager/DownloadManagerClient/Address")); downloadManagerClient = new DownloadManagerClient(xe.zXPathExplicitValue("DownloadManagerClient/Address")); else downloadManagerClient = new DownloadManagerClientTest(@"c:\pib\_dl\_pib\dl"); return downloadManagerClient; }