// Token: 0x06000282 RID: 642 RVA: 0x000097BC File Offset: 0x000079BC private void ParseNetZoneData(XmlReader xmlReader, WacDiscoveryResultBase result) { while (xmlReader.Read()) { if (xmlReader.NodeType == XmlNodeType.EndElement && string.Equals("net-zone", xmlReader.Name)) { return; } if (xmlReader.NodeType == XmlNodeType.Element && xmlReader.Name.Equals("action")) { string attribute = xmlReader.GetAttribute("name"); string attribute2 = xmlReader.GetAttribute("requires"); string text = "." + xmlReader.GetAttribute("ext"); string attribute3 = xmlReader.GetAttribute("urlsrc"); OwaServerTraceLogger.AppendToLog(new WacAttachmentLogEvent(string.Format(CultureInfo.InvariantCulture, "Extension: {0,-10} Verb: {1,-20} Requires {2,-30} Url: {3}", new object[] { text, attribute, attribute2, attribute3 }))); if (attribute != null) { if (attribute.Equals("view") && string.IsNullOrEmpty(attribute2)) { string text2; if (result.TryGetViewUrlForFileExtension(text, "this parameter is not needed here", out text2)) { OwaServerTraceLogger.AppendToLog(new WacAttachmentLogEvent(string.Format(CultureInfo.InvariantCulture, "Overwriting {0}", new object[] { text2 }))); } result.AddViewMapping(text, attribute3); if (text == ".doc") { result.AddViewMapping(".rtf", attribute3); } } else if (attribute.Equals("edit")) { string text2; if (result.TryGetEditUrlForFileExtension(text, "this parameter is not needed here", out text2)) { OwaServerTraceLogger.AppendToLog(new WacAttachmentLogEvent(string.Format(CultureInfo.InvariantCulture, "Overwriting {0}", new object[] { text2 }))); } result.AddEditMapping(text, attribute3); } } } } WacDiscoveryFailureException ex = new WacDiscoveryFailureException("Unexpected end of wac discovery file"); result = new WacDiscoveryResultFailure(ex); throw ex; }
public WacDiscoveryResultFailure(WacDiscoveryFailureException ex) { this.wacDiscoveryFailedException = ex; }