64 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)
947public 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)
947public 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)
947public 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)
40internal class TelemetryEventSource : EventSource
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TelemetryEventSource.cs (1)
40internal 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)
52internal 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 (7)
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)
20internal 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)
947public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
947public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
947public sealed class CertificateManagerEventSource : EventSource
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
947public sealed class CertificateManagerEventSource : EventSource
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
947public 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)
32private EventSource? _eventSources = null; 39protected override void OnEventSourceCreated(EventSource eventSource)
Microsoft.CodeAnalysis (2)
CodeAnalysisEventSource.Common.cs (2)
56fixed (EventSource.EventData* dataPtr = data) 90fixed (EventSource.EventData* dataPtr = data)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (2)
56fixed (EventSource.EventData* dataPtr = data) 90fixed (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)
111protected 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)
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\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\XpsOMPrintingTraceLogger.cs (1)
23EventSource logger = TraceLoggingProvider.GetProvider();
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\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\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggers\ControlsTraceLogger.cs (1)
61EventSource logger = TraceLoggingProvider.GetProvider();
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)
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)
109if (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)
465public static IEnumerable<EventSource> GetSources() 469return Array.Empty<EventSource>(); 472var ret = new List<EventSource>(); 477foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 479if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && !eventSource.IsDisposed) 495public static void SendCommand(EventSource eventSource, EventCommand command, IDictionary<string, string?>? commandArguments) 1672Func<EventSource?> eventSourceFactory = () => this; 2476public OverrideEventProvider(Func<EventSource?> eventSourceFactory, EventProviderType providerType) 2490private readonly Func<EventSource?> _eventSourceFactory; 2882foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 2884if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && eventSource.Guid == m_guid && !eventSource.IsDisposed) 3118if (reflectionOnly && ret.FullName != typeof(EventSource).FullName || 3119!reflectionOnly && ret != typeof(EventSource)) 3143EventSource? source, 3236if (eventSourceType != typeof(EventSource)) 3870if (!EventSource.IsSupported) 3904private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 3905private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3907private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 3910internal static EventSource? GetMetricsEventSource() 3912return GetInstance(null) as EventSource; 3922internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 3940EventSource.OverrideEventProvider etwProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.ETW); 3958EventSource.OverrideEventProvider eventPipeProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.EventPipe); 3975if (!EventSource.IsSupported) 3985Func<EventSource?>[] factories; 3991foreach (Func<EventSource?> factory in factories) 3997internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4001s_preregisteredEtwProviders.Remove(id, out EventSource.OverrideEventProvider? provider); 4007internal static EventSource.OverrideEventProvider? TryGetPreregisteredEventPipeProvider(string name) 4011s_preregisteredEventPipeProviders.Remove(name, out EventSource.OverrideEventProvider? provider); 4050/// of <see cref="EventSource"/>), in the current appdomain. When a new EventListener is created 4192public void EnableEvents(EventSource eventSource, EventLevel level) 4207public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword) 4223public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string?>? arguments) 4241public void DisableEvents(EventSource eventSource) 4262protected internal static int EventSourceIndex(EventSource eventSource) { return eventSource.m_id; } 4277protected internal virtual void OnEventSourceCreated(EventSource eventSource) 4311internal static void AddEventSource(EventSource newEventSource) 4326WeakReference<EventSource> weakRef = s_EventSources[i]; 4338s_EventSources.Add(new WeakReference<EventSource>(newEventSource)); 4374Debug.Assert(EventSource.IsSupported); 4375List<EventSource> sourcesToDispose = new List<EventSource>(); 4379foreach (WeakReference<EventSource> esRef in s_EventSources) 4381if (esRef.TryGetTarget(out EventSource? es)) 4391foreach (EventSource es in sourcesToDispose) 4398private static void CallDisableEventsIfNecessary(EventDispatcher eventDispatcher, EventSource eventSource) 4442WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4443foreach (WeakReference<EventSource> eventSourceRef in eventSourcesSnapshot) 4445if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4462foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4464if (eventSourceRef.TryGetTarget(out EventSource? eventSource) 4525foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4528if (!eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4566Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null); 4607WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4617WeakReference<EventSource> eventSourceRef = eventSourcesSnapshot[i]; 4618if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4659internal static List<WeakReference<EventSource>>? s_EventSources; 4720internal EventCommandEventArgs(EventCommand command, IDictionary<string, string?>? arguments, EventSource eventSource, 4734internal EventSource eventSource; 4757public EventSource? EventSource 4770private ref EventSource.EventMetadata Metadata => ref CollectionsMarshal.GetValueRefOrNullRef(EventSource.m_eventData!, EventId); 4797_activityId = EventSource.CurrentThreadActivityId; 4826public EventSource EventSource { get; } 4911internal EventWrittenEventArgs(EventSource eventSource, int eventId) 4918internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 4991/// Any instance methods in a class that subclasses <see cref="EventSource"/> and that return void are 5704bool 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)
2313EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 2375EventSource.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;