private static bool IsMatchProperty(TraceDetailedProcessParameter.TraceProperty prop) { if (prop != null && !string.IsNullOrEmpty(prop.PropertyName) && matchPropertyNames.Contains(prop.PropertyName) && prop.IsXmlFormat && !prop.IsXmlAttribute && !string.IsNullOrEmpty(prop.PropertyValue)) { return(true); } return(false); }
private void EnlistParameters(XmlNode node, InternalMessageTraceInfo info) { if (node != null && info != null && node.HasChildNodes) { foreach (XmlNode childNode in node.ChildNodes) { TraceDetailedProcessParameter.TraceProperty traceProperty = new TraceDetailedProcessParameter.TraceProperty(childNode.Name, childNode.InnerText, isAttribute: false, isXmlFormat: false); if (childNode.Attributes != null && childNode.Attributes["ValueType"] != null) { traceProperty.AdditionalData = childNode.Attributes["ValueType"].Value; } info.parameters.Add(traceProperty); } } }