31 references to DiagnosticStrings
System.ServiceModel.Internals (31)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (10)
354xml.WriteElementString(DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)); 355xml.WriteElementString(DiagnosticStrings.MessageTag, XmlEncode(exception.Message)); 356xml.WriteElementString(DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))); 357xml.WriteElementString(DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())); 361xml.WriteElementString(DiagnosticStrings.NativeErrorCodeTag, win32Exception.NativeErrorCode.ToString("X", CultureInfo.InvariantCulture)); 366xml.WriteStartElement(DiagnosticStrings.DataItemsTag); 369xml.WriteStartElement(DiagnosticStrings.DataTag); 370xml.WriteElementString(DiagnosticStrings.KeyTag, XmlEncode(dataItem.ToString())); 371xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString())); 378xml.WriteStartElement(DiagnosticStrings.InnerExceptionTag);
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (21)
339writer.WriteStartElement(DiagnosticStrings.TraceRecordTag); 340writer.WriteAttributeString(DiagnosticStrings.NamespaceTag, EtwDiagnosticTrace.TraceRecordVersion); 341writer.WriteAttributeString(DiagnosticStrings.SeverityTag, 343writer.WriteAttributeString(DiagnosticStrings.ChannelTag, EtwDiagnosticTrace.LookupChannel((TraceChannel)eventDescriptor.Channel)); 345writer.WriteElementString(DiagnosticStrings.TraceCodeTag, msdnTraceCode); 346writer.WriteElementString(DiagnosticStrings.DescriptionTag, description); 347writer.WriteElementString(DiagnosticStrings.AppDomain, payload.AppDomainFriendlyName); 351writer.WriteElementString(DiagnosticStrings.SourceTag, payload.EventSource); 480writer.WriteStartElement(DiagnosticStrings.ExtendedDataTag); 750if (!WriteStartElement(xml, DiagnosticStrings.ExceptionTag, ref remainingLength)) 759new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)), 760new Tuple<string, string> (DiagnosticStrings.MessageTag, XmlEncode(exception.Message)), 761new Tuple<string, string> (DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))), 762new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())), 770DiagnosticStrings.NativeErrorCodeTag, 821if (!WriteStartElement(xml, DiagnosticStrings.InnerExceptionTag, ref remainingLength)) 851xml.WriteStartElement(DiagnosticStrings.DataItemsTag); 854xml.WriteStartElement(DiagnosticStrings.DataTag); 855xml.WriteElementString(DiagnosticStrings.KeyTag, XmlEncode(dataItem.ToString())); 858xml.WriteElementString(DiagnosticStrings.ValueTag, string.Empty); 862xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString()));