1 instantiation of EtwDiagnosticTrace
System.ServiceModel.Internals (1)
System\Runtime\Fx.cs (1)
83EtwDiagnosticTrace trace = new EtwDiagnosticTrace(defaultEventSource, EtwDiagnosticTrace.DefaultEtwProviderId);
81 references to EtwDiagnosticTrace
System.ServiceModel.Internals (81)
System\Runtime\ActionItem.cs (4)
255this.activityId = EtwDiagnosticTrace.ActivityId; 291Guid currentActivityId = EtwDiagnosticTrace.ActivityId; 294EtwDiagnosticTrace.ActivityId = this.activityId; 299EtwDiagnosticTrace.ActivityId = currentActivityId;
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (19)
126return EtwDiagnosticTrace.defaultEtwProviderId; 134EtwDiagnosticTrace.defaultEtwProviderId = value; 209EtwDiagnosticTrace.traceAnnotation = annotation; 232EventDescriptor eventDescriptor = EtwDiagnosticTrace.GetEventDescriptor(eventId, channel, traceEventLevel); 254EtwDiagnosticTrace.ActivityId = newId; 262Guid oldId = EtwDiagnosticTrace.ActivityId; 272if (this.IsEtwEventEnabled(ref EtwDiagnosticTrace.transferEventDescriptor, false)) 274this.etwProvider.WriteTransferEvent(ref EtwDiagnosticTrace.transferEventDescriptor, new EventTraceActivity(oldId), newId, 275EtwDiagnosticTrace.traceAnnotation == null ? string.Empty : EtwDiagnosticTrace.traceAnnotation(), 303EtwDiagnosticTrace.GenerateLegacyTraceCode(ref eventDescriptor, out msdnTraceCode, out legacyEventId); 340writer.WriteAttributeString(DiagnosticStrings.NamespaceTag, EtwDiagnosticTrace.TraceRecordVersion); 343writer.WriteAttributeString(DiagnosticStrings.ChannelTag, EtwDiagnosticTrace.LookupChannel((TraceChannel)eventDescriptor.Channel)); 502if (getServiceReference && (EtwDiagnosticTrace.traceAnnotation != null)) 504return new TracePayload(serializedException, eventSource, DiagnosticTraceBase.AppDomainFriendlyName, extendedData, EtwDiagnosticTrace.traceAnnotation()); 554if (etwProviderId != Guid.Empty && EtwDiagnosticTrace.isVistaOrGreater) 883int minXmlLength = (localName.Length * 2) + EtwDiagnosticTrace.XmlBracketsLength; 900xmlElementLength = localName.Length + EtwDiagnosticTrace.XmlBracketsLengthForNullValue; 905xmlElementLength = (localName.Length * 2) + EtwDiagnosticTrace.XmlBracketsLength + value.Length;
System\Runtime\ExceptionTrace.cs (2)
22readonly EtwDiagnosticTrace diagnosticTrace; 24public ExceptionTrace(string eventSourceName, EtwDiagnosticTrace diagnosticTrace)
System\Runtime\Fx.cs (6)
43static EtwDiagnosticTrace diagnosticTrace; 63public static EtwDiagnosticTrace Trace 81static EtwDiagnosticTrace InitializeTracing() 83EtwDiagnosticTrace trace = new EtwDiagnosticTrace(defaultEventSource, EtwDiagnosticTrace.DefaultEtwProviderId); 531static void UpdateLevel(EtwDiagnosticTrace trace)
TraceCore.Designer.cs (50)
66internal static bool AppDomainUnloadIsEnabled(EtwDiagnosticTrace trace) 79internal static void AppDomainUnload(EtwDiagnosticTrace trace, string appdomainName, string processName, string processId) 98internal static bool HandledExceptionIsEnabled(EtwDiagnosticTrace trace) 110internal static void HandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 129internal static bool ShipAssertExceptionMessageIsEnabled(EtwDiagnosticTrace trace) 140internal static void ShipAssertExceptionMessage(EtwDiagnosticTrace trace, string param0) 159internal static bool ThrowingExceptionIsEnabled(EtwDiagnosticTrace trace) 172internal static void ThrowingException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 191internal static bool UnhandledExceptionIsEnabled(EtwDiagnosticTrace trace) 203internal static void UnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 222internal static bool TraceCodeEventLogCriticalIsEnabled(EtwDiagnosticTrace trace) 233internal static void TraceCodeEventLogCritical(EtwDiagnosticTrace trace, TraceRecord traceRecord) 252internal static bool TraceCodeEventLogErrorIsEnabled(EtwDiagnosticTrace trace) 263internal static void TraceCodeEventLogError(EtwDiagnosticTrace trace, TraceRecord traceRecord) 282internal static bool TraceCodeEventLogInfoIsEnabled(EtwDiagnosticTrace trace) 293internal static void TraceCodeEventLogInfo(EtwDiagnosticTrace trace, TraceRecord traceRecord) 312internal static bool TraceCodeEventLogVerboseIsEnabled(EtwDiagnosticTrace trace) 323internal static void TraceCodeEventLogVerbose(EtwDiagnosticTrace trace, TraceRecord traceRecord) 342internal static bool TraceCodeEventLogWarningIsEnabled(EtwDiagnosticTrace trace) 353internal static void TraceCodeEventLogWarning(EtwDiagnosticTrace trace, TraceRecord traceRecord) 372internal static bool HandledExceptionWarningIsEnabled(EtwDiagnosticTrace trace) 384internal static void HandledExceptionWarning(EtwDiagnosticTrace trace, string param0, System.Exception exception) 403internal static bool BufferPoolAllocationIsEnabled(EtwDiagnosticTrace trace) 414internal static void BufferPoolAllocation(EtwDiagnosticTrace trace, int Size) 428internal static bool BufferPoolChangeQuotaIsEnabled(EtwDiagnosticTrace trace) 440internal static void BufferPoolChangeQuota(EtwDiagnosticTrace trace, int PoolSize, int Delta) 454internal static bool ActionItemScheduledIsEnabled(EtwDiagnosticTrace trace) 465internal static void ActionItemScheduled(EtwDiagnosticTrace trace, System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity) 479internal static bool ActionItemCallbackInvokedIsEnabled(EtwDiagnosticTrace trace) 490internal static void ActionItemCallbackInvoked(EtwDiagnosticTrace trace, System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity) 504internal static bool HandledExceptionErrorIsEnabled(EtwDiagnosticTrace trace) 516internal static void HandledExceptionError(EtwDiagnosticTrace trace, string param0, System.Exception exception) 535internal static bool HandledExceptionVerboseIsEnabled(EtwDiagnosticTrace trace) 547internal static void HandledExceptionVerbose(EtwDiagnosticTrace trace, string param0, System.Exception exception) 566internal static bool EtwUnhandledExceptionIsEnabled(EtwDiagnosticTrace trace) 578internal static void EtwUnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 592internal static bool ThrowingEtwExceptionIsEnabled(EtwDiagnosticTrace trace) 605internal static void ThrowingEtwException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 619internal static bool ThrowingEtwExceptionVerboseIsEnabled(EtwDiagnosticTrace trace) 632internal static void ThrowingEtwExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 646internal static bool ThrowingExceptionVerboseIsEnabled(EtwDiagnosticTrace trace) 659internal static void ThrowingExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 738static bool IsEtwEventEnabled(EtwDiagnosticTrace trace, int eventIndex) 761static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3, string eventParam4) 779static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2, string eventParam3) 796static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1, string eventParam2) 813static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, string eventParam2) 831static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, int eventParam1, int eventParam2, string eventParam3) 847static bool WriteEtwEvent(EtwDiagnosticTrace trace, int eventIndex, System.Runtime.Diagnostics.EventTraceActivity eventParam0, string eventParam1) 863static void WriteTraceSource(EtwDiagnosticTrace trace, int eventIndex, string description, TracePayload payload)