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