71 types derived from EventSource
Aspire.Hosting (1)
AspireEventSource.cs (1)
10internal sealed class AspireEventSource : EventSource
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\WcfEventSource.cs (1)
11internal sealed class WcfEventSource : EventSource
ILCompiler.DependencyAnalysisFramework (2)
EventSourceLogStrategy.cs (1)
13internal sealed partial class GraphEventSource : EventSource
PerfEventSource.cs (1)
13public partial class PerfEventSource : EventSource
ILCompiler.ReadyToRun (1)
Compiler\PerfEventSource.cs (1)
13public partial class PerfEventSource : EventSource
illink (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEventSource.cs (1)
9internal sealed class HostingEventSource : EventSource
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsEventSource.cs (1)
9internal sealed class HttpConnectionsEventSource : EventSource
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelEventSource.cs (1)
17internal sealed class KestrelEventSource : EventSource
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Microsoft.Build.Framework (1)
MSBuildEventSource.cs (1)
15internal sealed class MSBuildEventSource : EventSource
Microsoft.Build.NuGetSdkResolver (1)
SdkResolverEventSource.cs (1)
8internal sealed class SdkResolverEventSource : EventSource
Microsoft.CodeAnalysis (1)
CodeAnalysisEventSource.Common.cs (1)
10internal sealed partial class CodeAnalysisEventSource : EventSource
Microsoft.CodeAnalysis.Razor.Compiler (1)
SourceGenerators\RazorSourceGeneratorEventSource.cs (1)
9internal sealed partial class RazorSourceGeneratorEventSource : EventSource
Microsoft.CodeAnalysis.Workspaces (2)
Log\RoslynEventSource.cs (1)
26internal sealed partial class RoslynEventSource : EventSource
src\roslyn\src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (1)
10internal sealed partial class CodeAnalysisEventSource : EventSource
Microsoft.Extensions.Caching.Hybrid (1)
Internal\HybridCacheEventSource.cs (1)
12internal sealed class HybridCacheEventSource : EventSource
Microsoft.Extensions.DependencyInjection (1)
DependencyInjectionEventSource.cs (1)
17internal sealed class DependencyInjectionEventSource : EventSource
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Latency\Internal\HttpMockProvider.cs (1)
43public class MockEventSource() : EventSource(throwOnEventWriteErrors: true)
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
87public sealed class LoggingEventSource : System.Diagnostics.Tracing.EventSource
Microsoft.Extensions.Telemetry (1)
Logging\LoggingEventSource.cs (1)
10internal sealed class LoggingEventSource : EventSource
Microsoft.Extensions.Telemetry.Tests (1)
Http\TestEventSource.cs (1)
9internal sealed class TestEventSource : EventSource
Microsoft.TestPlatform.CoreUtilities (1)
Tracing\TestPlatformEventSource.cs (1)
12public class TestPlatformEventSource : EventSource, ITestPlatformEventSource
NuGet.Commands (1)
CommandsEventSource.cs (1)
8internal sealed class CommandsEventSource : EventSource
NuGet.Common (1)
CommonEventSource.cs (1)
8internal sealed class CommonEventSource : EventSource
NuGet.Configuration (1)
ConfigurationEventSource.cs (1)
8internal sealed class ConfigurationEventSource : EventSource
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TelemetryEventSource.cs (1)
40internal class TelemetryEventSource : EventSource
PresentationFramework (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TelemetryEventSource.cs (1)
40internal class TelemetryEventSource : EventSource
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
System.Collections.Concurrent (1)
System\Collections\Concurrent\CDSCollectionETWBCLProvider.cs (1)
22internal sealed partial class CDSCollectionETWBCLProvider : EventSource
System.Data.Common (1)
System\Data\Common\DataCommonEventSource.cs (1)
10internal sealed partial class DataCommonEventSource : EventSource
System.Data.OleDb (1)
System\Data\Common\DataCommonEventSource.cs (1)
10internal sealed partial class DataCommonEventSource : EventSource
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
164internal sealed class DiagnosticSourceEventSource : EventSource
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
52internal sealed partial class MetricsEventSource : EventSource
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\PLINQETWProvider.cs (1)
25internal sealed partial class PlinqEtwProvider : EventSource
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System\Net\Http\HttpTelemetry.cs (1)
13internal sealed partial class HttpTelemetry : EventSource
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.HttpListener (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Mail (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.NameResolution (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System\Net\NameResolutionTelemetry.cs (1)
13internal sealed partial class NameResolutionTelemetry : EventSource
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetEventSource.NetworkInformation.cs (1)
11internal sealed partial class NetEventSource : EventSource
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Requests (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System\Net\Security\NetSecurityTelemetry.cs (1)
13internal sealed partial class NetSecurityTelemetry : EventSource
System.Net.Sockets (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System\Net\Sockets\SocketsTelemetry.cs (1)
11internal sealed partial class SocketsTelemetry : EventSource
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Private.CoreLib (11)
_generated\0\NativeRuntimeEventSource.g.cs (1)
9internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\ArrayPoolEventSource.cs (1)
10internal sealed partial class ArrayPoolEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\FrameworkEventSource.cs (1)
10internal sealed partial class FrameworkEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (1)
26internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Exceptions.NativeSinks.cs (1)
11internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Exceptions.NativeSinks.Internal.cs (1)
9internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.cs (1)
11internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.Internal.cs (1)
9internal sealed partial class NativeRuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
14internal sealed partial class RuntimeEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfilerEventSource.cs (1)
11internal sealed partial class AsyncProfilerEventSource : EventSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
15internal sealed partial class TplEventSource : EventSource
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationEventSource.cs (1)
9internal sealed partial class XmlSerializationEventSource : EventSource
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
15internal sealed class Counters : EventSource
System.ServiceModel.Primitives (1)
Internals\WcfEventSource.cs (1)
11internal sealed class WcfEventSource : EventSource
System.Threading (1)
System\Threading\CDSsyncETWBCLProvider.cs (1)
28internal sealed partial class CdsSyncEtwBCLProvider : EventSource
System.Threading.Tasks.Dataflow (1)
Internal\DataflowEtwProvider.cs (1)
25internal sealed partial class DataflowEtwProvider : EventSource
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\ParallelETWProvider.cs (1)
21internal sealed partial class ParallelEtwProvider : EventSource
System.Transactions.Local (1)
System\Transactions\TransactionsEtwProvider.cs (1)
77internal sealed partial class TransactionsEtwProvider : EventSource
177 references to EventSource
Aspire.RabbitMQ.Client (3)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (3)
131private readonly List<EventSource> _eventSources = []; 142foreach (EventSource eventSource in _eventSources) 152protected sealed override void OnEventSourceCreated(EventSource eventSource)
Infrastructure.Common (7)
TestEventListener.cs (7)
19private List<EventSource> _tmpEventSourceList = new List<EventSource>(); 50List<EventSource> sources; 56foreach (EventSource source in sources) 62protected override void OnEventSourceCreated(EventSource eventSource) 64List<EventSource> tmp = _tmpEventSourceList; 80private void EnableSourceIfMatch(EventSource source)
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerOptions.cs (1)
71/// <description>Writing the <c>Microsoft.AspNetCore.Diagnostics.HandledException</c> event to <see cref="EventSource" />.</description>
Microsoft.AspNetCore.InternalTesting (14)
Tracing\CollectingEventListener.cs (5)
17private readonly Dictionary<string, EventSource> _existingSources = new Dictionary<string, EventSource>(StringComparer.OrdinalIgnoreCase); 25if (_existingSources.TryGetValue(eventSourceName, out var existingSource)) 38public void CollectFrom(EventSource eventSource) => EnableEvents(eventSource, EventLevel.Verbose, EventKeywords.All); 42protected override void OnEventSourceCreated(EventSource eventSource)
Tracing\EventSourceTestBase.cs (1)
30protected void CollectFrom(EventSource eventSource)
Tracing\EventSourceValidator.cs (8)
13/// Validates that <see cref="EventSource"/>-derived classes have consistent 23/// <typeparam name="T">A type that derives from <see cref="EventSource"/>.</typeparam> 24public static void ValidateEventSourceIds<T>() where T : EventSource 28/// Validates all <c>[Event]</c>-attributed methods on the given <see cref="EventSource"/>-derived type. 30/// Uses <see cref="EventSource.GenerateManifest(Type, string, EventManifestOptions)"/> with 39/// <param name="eventSourceType">A type that derives from <see cref="EventSource"/>.</param> 48typeof(EventSource).IsAssignableFrom(eventSourceType), 84var manifest = EventSource.GenerateManifest(
Microsoft.CodeAnalysis (2)
CodeAnalysisEventSource.Common.cs (2)
54fixed (EventSource.EventData* dataPtr = data) 88fixed (EventSource.EventData* dataPtr = data)
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (2)
54fixed (EventSource.EventData* dataPtr = data) 88fixed (EventSource.EventData* dataPtr = data)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TestEventListener.cs (1)
45protected override void OnEventSourceCreated(EventSource eventSource)
Microsoft.Extensions.Http.Diagnostics (4)
Latency\Internal\HttpRequestLatencyListener.cs (4)
20private readonly ConcurrentDictionary<string, EventSource?> _eventSources = new() 85internal void OnEventSourceCreated(string eventSourceName, EventSource eventSource) 94protected override void OnEventSourceCreated(EventSource eventSource) 104private void EnableEventSource(EventSource eventSource)
Microsoft.Extensions.Telemetry.Tests (1)
Http\TestEventListener.cs (1)
10public TestEventListener(EventSource eventSource, EventLevel eventLevel)
MSBuild (1)
PerformanceLogEventListener.cs (1)
111protected override void OnEventSourceCreated(EventSource eventSource)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
207[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventSource))]
netstandard (1)
netstandard.cs (1)
729[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventSource))]
PresentationCore (10)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (5)
41private readonly EventSource _eventSource; 57internal EventSourceActivity(EventSource eventSource) 77internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions) 102internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 153internal EventSource EventSource
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\XpsOMPrintingTraceLogger.cs (1)
23EventSource logger = TraceLoggingProvider.GetProvider();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (2)
28internal static EventSource GetProvider() 50private static EventSource _logger;
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (2)
290EventSource logger = TraceLoggingProvider.GetProvider(); 303EventSource logger = TraceLoggingProvider.GetProvider();
PresentationFramework (10)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (5)
41private readonly EventSource _eventSource; 57internal EventSourceActivity(EventSource eventSource) 77internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions) 102internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 153internal EventSource EventSource
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\ControlsTraceLogger.cs (1)
61EventSource logger = TraceLoggingProvider.GetProvider();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (2)
28internal static EventSource GetProvider() 50private static EventSource _logger;
System\Windows\Documents\TextMapOffsetErrorLogger.cs (1)
112var logger = MS.Internal.Telemetry.PresentationFramework.TraceLoggingProvider.GetProvider();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
207var logger = MS.Internal.Telemetry.PresentationFramework.TraceLoggingProvider.GetProvider();
System.Diagnostics.Tracing (1)
src\runtime\artifacts\obj\System.Diagnostics.Tracing\Release\net11.0\System.Diagnostics.Tracing.Forwards.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventSource))]
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\SocketsHttpConnectionContext.cs (1)
37/// reported through <see cref="EventSource"/> telemetry, the
System\Net\Http\SocketsHttpHandler\SocketsHttpConnectionEvictionContext.cs (1)
57/// <see cref="EventSource"/> telemetry and the <see cref="HttpRequestMessage.ConnectionId"/> stamped on
System\Net\Http\SocketsHttpHandler\SocketsHttpPlaintextStreamFilterContext.cs (1)
45/// through <see cref="EventSource"/> telemetry for that connection. For a direct connection it also matches the
System.Private.CoreLib (113)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
154if (EventSource.IsSupported)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (8)
106relatedActivityId = EventSource.CurrentThreadActivityId; 257if (activityName.EndsWith(EventSource.ActivityStartSuffix, StringComparison.Ordinal)) 259return string.Concat(providerName, activityName.AsSpan()[..^EventSource.ActivityStartSuffix.Length]); 261else if (activityName.EndsWith(EventSource.ActivityStopSuffix, StringComparison.Ordinal)) 263return string.Concat(providerName, activityName.AsSpan()[..^EventSource.ActivityStopSuffix.Length]); 571EventSource.SetCurrentThreadActivityId(prev.m_activityIdToRestore); 584EventSource.SetCurrentThreadActivityId(cur.ActivityId); 592EventSource.SetCurrentThreadActivityId(Guid.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (3)
16private readonly EventSource _eventSource; 20internal CounterGroup(EventSource eventSource) 125internal static CounterGroup GetCounterGroup(EventSource eventSource)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (2)
26internal DiagnosticCounter(string Name, EventSource EventSource) 101public EventSource EventSource { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventCounter.cs (1)
31public EventCounter(string name, EventSource eventSource) : base(name, eventSource)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (29)
11/// of <see cref="EventSource"/>), in the current appdomain. When a new EventListener is created 153public void EnableEvents(EventSource eventSource, EventLevel level) 168public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword) 184public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string?>? arguments) 202public void DisableEvents(EventSource eventSource) 223protected internal static int EventSourceIndex(EventSource eventSource) { return eventSource.m_id; } 238protected internal virtual void OnEventSourceCreated(EventSource eventSource) 272internal static void AddEventSource(EventSource newEventSource) 287WeakReference<EventSource> weakRef = s_EventSources[i]; 299s_EventSources.Add(new WeakReference<EventSource>(newEventSource)); 335Debug.Assert(EventSource.IsSupported); 336List<EventSource> sourcesToDispose = new List<EventSource>(); 340foreach (WeakReference<EventSource> esRef in s_EventSources) 342if (esRef.TryGetTarget(out EventSource? es)) 352foreach (EventSource es in sourcesToDispose) 359private static void CallDisableEventsIfNecessary(EventDispatcher eventDispatcher, EventSource eventSource) 403WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 404foreach (WeakReference<EventSource> eventSourceRef in eventSourcesSnapshot) 406if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 423foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 425if (eventSourceRef.TryGetTarget(out EventSource? eventSource) 486foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 489if (!eventSourceRef.TryGetTarget(out EventSource? eventSource)) 527Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null); 568WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 578WeakReference<EventSource> eventSourceRef = eventSourcesSnapshot[i]; 579if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 620internal static List<WeakReference<EventSource>>? s_EventSources;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (1)
5using EventMetadata = System.Diagnostics.Tracing.EventSource.EventMetadata;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
15internal static object[] DecodePayload(ref EventSource.EventMetadata metadata, ReadOnlySpan<byte> payload)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (44)
454public static IEnumerable<EventSource> GetSources() 461var ret = new List<EventSource>(); 466foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 468if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && !eventSource.IsDisposed) 484public static void SendCommand(EventSource eventSource, EventCommand command, IDictionary<string, string?>? commandArguments) 1689Func<EventSource?> eventSourceFactory = () => this; 2496public OverrideEventProvider(Func<EventSource?> eventSourceFactory, EventProviderType providerType) 2510private readonly Func<EventSource?> _eventSourceFactory; 2902foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 2904if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && eventSource.Guid == m_guid && !eventSource.IsDisposed) 3044EventSource? source, 3137if (eventSourceType != typeof(EventSource)) 3460if (reflectionOnly && ret.FullName != typeof(EventSource).FullName || 3461!reflectionOnly && ret != typeof(EventSource)) 3886if (!EventSource.IsSupported) 3941private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 3942private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3944private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 3947internal static EventSource? GetMetricsEventSource() 3949return GetInstance(null) as EventSource; 3959internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 3977EventSource.OverrideEventProvider etwProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.ETW); 3995EventSource.OverrideEventProvider eventPipeProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.EventPipe); 4012if (!EventSource.IsSupported) 4022Func<EventSource?>[] factories; 4028foreach (Func<EventSource?> factory in factories) 4034internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4038s_preregisteredEtwProviders.Remove(id, out EventSource.OverrideEventProvider? provider); 4044internal static EventSource.OverrideEventProvider? TryGetPreregisteredEventPipeProvider(string name) 4048s_preregisteredEventPipeProviders.Remove(name, out EventSource.OverrideEventProvider? provider); 4126internal EventCommandEventArgs(EventCommand command, IDictionary<string, string?>? arguments, EventSource eventSource, 4140internal EventSource eventSource; 4163public EventSource? EventSource 4176private ref EventSource.EventMetadata Metadata => ref CollectionsMarshal.GetValueRefOrNullRef(EventSource.m_eventData!, EventId); 4203_activityId = EventSource.CurrentThreadActivityId; 4232public EventSource EventSource { get; } 4317internal EventWrittenEventArgs(EventSource eventSource, int eventId) 4324internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 4397/// Any instance methods in a class that subclasses <see cref="EventSource"/> and that return void are
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingEventCounter.cs (1)
27public IncrementingEventCounter(string name, EventSource eventSource) : base(name, eventSource)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingPollingCounter.cs (1)
30public IncrementingPollingCounter(string name, EventSource eventSource, Func<double> totalValueProvider) : base(name, eventSource)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
435bool isbitmap = EventSource.IsCustomAttributeDefinedHelper(enumType, typeof(FlagsAttribute), flags);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\PollingCounter.cs (1)
29public PollingCounter(string name, EventSource eventSource, Func<double> metricProvider) : base(name, eventSource)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (8)
26private EventSource.EventData* datasEnd; 28private EventSource.EventData* datasStart; 30private EventSource.EventData* datas; 40EventSource.EventData* datas, 68internal EventSource.EventData* Finish() 318EventSource.EventData* datasTemp = this.datas; 336EventSource.EventData* datasTemp = this.datas; 351EventSource.EventData* datasTemp = this.datas;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncInstrumentation.cs (2)
13public static bool IsAsyncProfilerSupported => EventSource.IsSupported; 15public static bool IsTplSupported => EventSource.IsSupported;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (2)
297EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.Id), out prevActivityId); 307EventSource.SetCurrentThreadActivityId(prevActivityId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2467EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 2529EventSource.SetCurrentThreadActivityId(savedActivityID);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (4)
437Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(activityId, out Guid savedActivityId); 439finally { Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(savedActivityId); } 649Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(activityId, out savedActivityId); 675Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(savedActivityId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1449internal static bool EnableWorkerTracking => IsWorkerTrackingEnabledInConfig && EventSource.IsSupported;
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
67return EventSource.CurrentThreadActivityId; 72EventSource.SetCurrentThreadActivityId(ActivityId);