/// <summary> /// Reads the pcc.config file for local conditions are locations. /// </summary> /// <param name="configPath">The xml file name to read.</param> private static void LoadConfig() { var doc = new XmlDocument(); doc.Load(FullName); DocumentFolder = GetNode(doc, "DocumentPath"); PrizmApplicationServicesScheme = GetNode(doc, "PrizmApplicationServicesScheme"); PrizmApplicationServicesHost = GetNode(doc, "PrizmApplicationServicesHost"); PrizmApplicationServicesPort = Convert.ToInt32(GetNode(doc, "PrizmApplicationServicesPort")); if (!string.IsNullOrEmpty(DocumentFolder)) { DocumentFolder = InlineEnvVariables(DocumentFolder); if (!(DocumentFolder.EndsWith("\\") || DocumentFolder.EndsWith("/"))) { DocumentFolder += Path.DirectorySeparatorChar; } } if (!(DocumentFolder.EndsWith("\\") || DocumentFolder.EndsWith("/"))) { DocumentFolder += Path.DirectorySeparatorChar; } }
/// <summary> /// Reads the pcc.config file for local conditions are locations. /// </summary> /// <param name="configPath">The xml file name to read.</param> private static void LoadConfig() { //HttpRequest req = HttpContext.Current.Request; var doc = new XmlDocument(); doc.Load(FullName); DocumentFolder = GetNode(doc, "DocumentPath"); PrizmApplicationServicesScheme = GetNode(doc, "PrizmApplicationServicesScheme"); PrizmApplicationServicesHost = GetNode(doc, "PrizmApplicationServicesHost"); PrizmApplicationServicesPort = Convert.ToInt32(GetNode(doc, "PrizmApplicationServicesPort")); webServiceHost = GetNode(doc, "webServiceHost"); webServicePort = Convert.ToInt32(GetNode(doc, "webServicePort")); webServiceScheme = GetNode(doc, "webServiceScheme"); webServicePath = GetNode(doc, "webServicePath"); markupsPath = GetNode(doc, "markupsPath"); markupLayerRecordsPath = GetNode(doc, "markupLayersRecordsPath"); acsApiKey = GetNode(doc, "acsApiKey"); if (!string.IsNullOrEmpty(DocumentFolder)) { DocumentFolder = InlineEnvVariables(DocumentFolder); if (!(DocumentFolder.EndsWith("\\") || DocumentFolder.EndsWith("/"))) { DocumentFolder += Path.DirectorySeparatorChar; } } markupLayerRecordsPath = InlineEnvVariables(markupLayerRecordsPath); /* * if (string.IsNullOrEmpty(markupLayerRecordsPath)) * { * markupLayerRecordsPath = System.IO.Path.GetTempPath() + Path.DirectorySeparatorChar + ".MarkupLayerRecords"; * } */ }