65 types derived from EventSource
Aspire.Hosting (1)
AspireEventSource.cs (1)
10internal sealed class AspireEventSource : EventSource
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientInstrumentationEventSource.cs (1)
13internal sealed class SqlClientInstrumentationEventSource : EventSource
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientInstrumentationEventSource.cs (1)
13internal sealed class SqlClientInstrumentationEventSource : EventSource
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\WcfEventSource.cs (1)
11internal sealed class WcfEventSource : EventSource
illink (1)
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterEventSource.cs (1)
9internal sealed class ConcurrencyLimiterEventSource : EventSource
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public 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.InternalTesting.Tests (1)
CollectingEventListenerTest.cs (1)
76public class TestEventSource : EventSource
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelEventSource.cs (1)
17internal sealed class KestrelEventSource : EventSource
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
Microsoft.Build.Framework (1)
MSBuildEventSource.cs (1)
15internal sealed class MSBuildEventSource : EventSource
Microsoft.CodeAnalysis (1)
CodeAnalysisEventSource.Common.cs (1)
10internal sealed partial class CodeAnalysisEventSource : EventSource
Microsoft.CodeAnalysis.Workspaces (2)
Log\RoslynEventSource.cs (1)
26internal sealed partial class RoslynEventSource : EventSource
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)
16internal sealed class DependencyInjectionEventSource : EventSource
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Latency\Internal\HttpMockProvider.cs (1)
43public class MockEventSource : EventSource
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
86public 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
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TelemetryEventSource.cs (1)
41internal class TelemetryEventSource : EventSource
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TelemetryEventSource.cs (1)
41internal class TelemetryEventSource : EventSource
System.Collections.Concurrent (1)
System\Collections\Concurrent\CDSCollectionETWBCLProvider.cs (1)
25internal sealed class CDSCollectionETWBCLProvider : EventSource
System.Data.Common (1)
System\Data\Common\DataCommonEventSource.cs (1)
10internal sealed class DataCommonEventSource : EventSource
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
163internal sealed class DiagnosticSourceEventSource : EventSource
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
45internal sealed class MetricsEventSource : EventSource
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\PLINQETWProvider.cs (1)
25internal sealed class PlinqEtwProvider : EventSource
System.Net.Http (2)
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.HttpListener (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Mail (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.NameResolution (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System\Net\NameResolutionTelemetry.cs (1)
13internal sealed class NameResolutionTelemetry : EventSource
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetEventSource.NetworkInformation.cs (1)
11internal sealed class NetEventSource : EventSource
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Requests (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Net.Security (2)
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 class NetSecurityTelemetry : EventSource
System.Net.Sockets (2)
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 class SocketsTelemetry : EventSource
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
33internal sealed partial class NetEventSource : EventSource
System.Private.CoreLib (8)
artifacts\obj\coreclr\System.Private.CoreLib\linux.x64.Debug\NativeRuntimeEventSource.Generated.cs (1)
15internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Buffers\ArrayPoolEventSource.cs (1)
11internal sealed partial class ArrayPoolEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\FrameworkEventSource.cs (1)
11internal sealed partial class FrameworkEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (1)
19internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.cs (1)
20internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.Internal.cs (1)
11internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
15internal sealed partial class RuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
16internal sealed partial class TplEventSource : EventSource
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationEventSource.cs (1)
10internal sealed class XmlSerializationEventSource : EventSource
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
15internal sealed class Counters : EventSource
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainEventSource.cs (1)
11internal sealed class OpenSslX509ChainEventSource : EventSource
System.Threading (1)
System\Threading\CDSsyncETWBCLProvider.cs (1)
28internal sealed class CdsSyncEtwBCLProvider : EventSource
System.Threading.Tasks.Dataflow (1)
Internal\DataflowEtwProvider.cs (1)
25internal sealed class DataflowEtwProvider : EventSource
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\ParallelETWProvider.cs (1)
21internal sealed class ParallelEtwProvider : EventSource
System.Transactions.Local (1)
System\Transactions\TransactionsEtwProvider.cs (1)
77internal sealed class TransactionsEtwProvider : EventSource
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
908public sealed class CertificateManagerEventSource : EventSource
184 references to EventSource
Aspire.RabbitMQ.Client (4)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (4)
130private readonly List<EventSource> _eventSources = new List<EventSource>(); 140foreach (EventSource eventSource in _eventSources) 148protected sealed override void OnEventSourceCreated(EventSource eventSource)
Http3SampleApp (2)
src\Shared\HttpClient\HttpEventSourceListener.cs (2)
23protected override void OnEventSourceCreated(EventSource eventSource) 39private static bool IsHttpEventSource(EventSource eventSource)
HttpStress (1)
Program.cs (1)
736protected 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)
InMemory.FunctionalTests (2)
EventSourceTests.cs (2)
442protected override void OnEventSourceCreated(EventSource eventSource) 502public EventSource EventSource { get; }
Interop.FunctionalTests (2)
src\Shared\HttpClient\HttpEventSourceListener.cs (2)
23protected override void OnEventSourceCreated(EventSource eventSource) 39private static bool IsHttpEventSource(EventSource eventSource)
InteropClient (2)
src\Shared\HttpClient\HttpEventSourceListener.cs (2)
23protected override void OnEventSourceCreated(EventSource eventSource) 39private static bool IsHttpEventSource(EventSource eventSource)
Microsoft.AspNetCore.InternalTesting (6)
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)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
KestrelEventSourceTests.cs (3)
25Assert.Equal("Microsoft-AspNetCore-Server-Kestrel", EventSource.GetName(esType)); 26Assert.Equal(Guid.Parse("bdeb4676-a36e-5442-db99-4764e2326c7d", CultureInfo.InvariantCulture), EventSource.GetGuid(esType)); 27Assert.NotEmpty(EventSource.GenerateManifest(esType, "assemblyPathToIncludeInManifest"));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Shared\HttpClient\HttpEventSourceListener.cs (2)
23protected override void OnEventSourceCreated(EventSource eventSource) 39private static bool IsHttpEventSource(EventSource eventSource)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (1)
3049protected override void OnEventSourceCreated(EventSource eventSource)
WebHostTests.cs (1)
135protected override void OnEventSourceCreated(EventSource eventSource)
Microsoft.Build.Engine.UnitTests (2)
BackEnd\EventSourceTestHelper.cs (2)
36private EventSource? _eventSources = null; 43protected override void OnEventSourceCreated(EventSource eventSource)
Microsoft.CodeAnalysis (2)
CodeAnalysisEventSource.Common.cs (2)
55fixed (EventSource.EventData* dataPtr = data) 89fixed (EventSource.EventData* dataPtr = data)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (2)
55fixed (EventSource.EventData* dataPtr = data) 89fixed (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() 65internal void OnEventSourceCreated(string eventSourceName, EventSource eventSource) 74protected override void OnEventSourceCreated(EventSource eventSource) 84private void EnableEventSource(EventSource eventSource)
Microsoft.Extensions.Telemetry.Tests (1)
Http\TestEventListener.cs (1)
10public TestEventListener(EventSource eventSource, EventLevel eventLevel)
MSBuild (1)
PerformanceLogEventListener.cs (1)
112protected override void OnEventSourceCreated(EventSource eventSource)
mscorlib (1)
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\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (5)
42private readonly EventSource _eventSource; 58internal EventSourceActivity(EventSource eventSource) 78internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions) 103internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 154internal EventSource EventSource
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\XpsOMPrintingTraceLogger.cs (1)
24EventSource logger = TraceLoggingProvider.GetProvider();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (2)
29internal static EventSource GetProvider() 51private static EventSource _logger;
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (2)
291EventSource logger = TraceLoggingProvider.GetProvider(); 304EventSource logger = TraceLoggingProvider.GetProvider();
PresentationFramework (10)
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\EventSourceActivity.cs (5)
42private readonly EventSource _eventSource; 58internal EventSourceActivity(EventSource eventSource) 78internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions) 103internal EventSourceActivity(EventSource eventSource, EventSourceOptions startStopOptions, Guid parentActivityId) 154internal EventSource EventSource
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\ControlsTraceLogger.cs (1)
62EventSource logger = TraceLoggingProvider.GetProvider();
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (2)
29internal static EventSource GetProvider() 51private static EventSource _logger;
System\Windows\Documents\TextMapOffsetErrorLogger.cs (1)
113var logger = MS.Internal.Telemetry.PresentationFramework.TraceLoggingProvider.GetProvider();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (1)
208var logger = MS.Internal.Telemetry.PresentationFramework.TraceLoggingProvider.GetProvider();
System.Diagnostics.Tracing (1)
artifacts\obj\System.Diagnostics.Tracing\Debug\net10.0\System.Diagnostics.Tracing.Forwards.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventSource))]
System.Private.CoreLib (115)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
88if (EventSource.IsSupported)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (8)
105relatedActivityId = EventSource.CurrentThreadActivityId; 256if (activityName.EndsWith(EventSource.ActivityStartSuffix, StringComparison.Ordinal)) 258return string.Concat(providerName, activityName.AsSpan()[..^EventSource.ActivityStartSuffix.Length]); 260else if (activityName.EndsWith(EventSource.ActivityStopSuffix, StringComparison.Ordinal)) 262return string.Concat(providerName, activityName.AsSpan()[..^EventSource.ActivityStopSuffix.Length]); 570EventSource.SetCurrentThreadActivityId(prev.m_activityIdToRestore); 583EventSource.SetCurrentThreadActivityId(cur.ActivityId); 591EventSource.SetCurrentThreadActivityId(Guid.Empty);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (3)
15private readonly EventSource _eventSource; 19internal CounterGroup(EventSource eventSource) 124internal static CounterGroup GetCounterGroup(EventSource eventSource)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (2)
26internal DiagnosticCounter(string Name, EventSource EventSource) 101public EventSource EventSource { get; }
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventCounter.cs (1)
31public EventCounter(string name, EventSource eventSource) : base(name, eventSource)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (1)
4using EventMetadata = System.Diagnostics.Tracing.EventSource.EventMetadata;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (1)
15internal static object[] DecodePayload(ref EventSource.EventMetadata metadata, ReadOnlySpan<byte> payload)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (75)
466public static IEnumerable<EventSource> GetSources() 470return Array.Empty<EventSource>(); 473var ret = new List<EventSource>(); 478foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 480if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && !eventSource.IsDisposed) 496public static void SendCommand(EventSource eventSource, EventCommand command, IDictionary<string, string?>? commandArguments) 1673Func<EventSource?> eventSourceFactory = () => this; 2475public OverrideEventProvider(Func<EventSource?> eventSourceFactory, EventProviderType providerType) 2489private readonly Func<EventSource?> _eventSourceFactory; 2880foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 2882if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && eventSource.Guid == m_guid && !eventSource.IsDisposed) 3111if (reflectionOnly && ret.FullName != typeof(EventSource).FullName || 3112!reflectionOnly && ret != typeof(EventSource)) 3136EventSource? source, 3228if (eventSourceType != typeof(EventSource)) 3882if (!EventSource.IsSupported) 3914private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 3920internal static EventSource? GetMetricsEventSource() 3935return getInstanceMethod.Invoke(null, null) as EventSource; 3940internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 3958EventSource.OverrideEventProvider etwProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.ETW); 3976EventSource.OverrideEventProvider eventPipeProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.EventPipe); 3993if (!EventSource.IsSupported) 4003Func<EventSource?>[] factories; 4009foreach (Func<EventSource?> factory in factories) 4015internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4019s_preregisteredEtwProviders.Remove(id, out EventSource.OverrideEventProvider? provider); 4025internal static EventSource.OverrideEventProvider? TryGetPreregisteredEventPipeProvider(string name) 4029s_preregisteredEventPipeProviders.Remove(name, out EventSource.OverrideEventProvider? provider); 4068/// of <see cref="EventSource"/>), in the current appdomain. When a new EventListener is created 4210public void EnableEvents(EventSource eventSource, EventLevel level) 4225public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword) 4241public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string?>? arguments) 4259public void DisableEvents(EventSource eventSource) 4280protected internal static int EventSourceIndex(EventSource eventSource) { return eventSource.m_id; } 4295protected internal virtual void OnEventSourceCreated(EventSource eventSource) 4329internal static void AddEventSource(EventSource newEventSource) 4344WeakReference<EventSource> weakRef = s_EventSources[i]; 4356s_EventSources.Add(new WeakReference<EventSource>(newEventSource)); 4392Debug.Assert(EventSource.IsSupported); 4393List<EventSource> sourcesToDispose = new List<EventSource>(); 4397foreach (WeakReference<EventSource> esRef in s_EventSources) 4399if (esRef.TryGetTarget(out EventSource? es)) 4409foreach (EventSource es in sourcesToDispose) 4416private static void CallDisableEventsIfNecessary(EventDispatcher eventDispatcher, EventSource eventSource) 4460WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4461foreach (WeakReference<EventSource> eventSourceRef in eventSourcesSnapshot) 4463if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4480foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4482if (eventSourceRef.TryGetTarget(out EventSource? eventSource) 4543foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4546if (!eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4584Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null); 4625WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4635WeakReference<EventSource> eventSourceRef = eventSourcesSnapshot[i]; 4636if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4677internal static List<WeakReference<EventSource>>? s_EventSources; 4738internal EventCommandEventArgs(EventCommand command, IDictionary<string, string?>? arguments, EventSource eventSource, 4752internal EventSource eventSource; 4775public EventSource? EventSource 4788private ref EventSource.EventMetadata Metadata => ref EventSource.m_eventData![EventId]; 4815_activityId = EventSource.CurrentThreadActivityId; 4844public EventSource EventSource { get; } 4929internal EventWrittenEventArgs(EventSource eventSource, int eventId) 4936internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 5009/// Any instance methods in a class that subclasses <see cref="EventSource"/> and that return void are 5722bool isbitmap = EventSource.IsCustomAttributeDefinedHelper(enumType, typeof(FlagsAttribute), flags);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingEventCounter.cs (1)
27public IncrementingEventCounter(string name, EventSource eventSource) : base(name, eventSource)
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\PollingCounter.cs (1)
29public PollingCounter(string name, EventSource eventSource, Func<double> metricProvider) : base(name, eventSource)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (8)
25private EventSource.EventData* datasEnd; 27private EventSource.EventData* datasStart; 29private EventSource.EventData* datas; 39EventSource.EventData* datas, 67internal EventSource.EventData* Finish() 317EventSource.EventData* datasTemp = this.datas; 335EventSource.EventData* datasTemp = this.datas; 350EventSource.EventData* datasTemp = this.datas;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
156protected internal override void OnEventSourceCreated(EventSource eventSource)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (2)
269EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.Id), out prevActivityId); 279EventSource.SetCurrentThreadActivityId(prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (2)
168EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(((Task<int>)continuationIdTask).Result), out prevActivityId); 175EventSource.SetCurrentThreadActivityId(prevActivityId);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2314EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 2376EventSource.SetCurrentThreadActivityId(savedActivityID);
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); } 635Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(activityId, out savedActivityId); 661Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId(savedActivityId);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1674internal static bool EnableWorkerTracking => IsWorkerTrackingEnabledInConfig && EventSource.IsSupported;