67 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 (1)
PerformanceLogEventSource.cs (1)
15internal sealed class PerformanceLogEventSource : EventSource
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public sealed class CertificateManagerEventSource : EventSource
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\Internals\WcfEventSource.cs (1)
11internal sealed class WcfEventSource : EventSource
dotnet-watch (1)
HotReload\HotReloadEventSource.cs (1)
10internal sealed class HotReloadEventSource : EventSource
illink (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public 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)
953public 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(throwOnEventWriteErrors: true)
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)
22internal 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 (8)
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)
27internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Exceptions.NativeSinks.cs (1)
11internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.cs (1)
11internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.Internal.cs (1)
9internal 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)
9internal 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.ServiceModel.Primitives (1)
Internals\WcfEventSource.cs (1)
11internal sealed class WcfEventSource : 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)
953public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public sealed class CertificateManagerEventSource : EventSource
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public sealed class CertificateManagerEventSource : EventSource
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
953public sealed class CertificateManagerEventSource : EventSource
189 references to EventSource
Aspire.RabbitMQ.Client (4)
RabbitMQEventSourceLogForwarder.cs (4)
130private readonly List<EventSource> _eventSources = new List<EventSource>(); 140foreach (EventSource eventSource in _eventSources) 148protected sealed override void OnEventSourceCreated(EventSource eventSource)
dotnet (1)
PerformanceLogEventListener.cs (1)
101protected override void OnEventSourceCreated(EventSource eventSource)
dotnet.Tests (1)
GivenThatTheUserEnablesThePerfLog.cs (1)
67protected 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.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 (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)
3051protected override void OnEventSourceCreated(EventSource eventSource)
WebHostTests.cs (1)
137protected 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() 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\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)
112if (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) 1675Func<EventSource?> eventSourceFactory = () => this; 2485public OverrideEventProvider(Func<EventSource?> eventSourceFactory, EventProviderType providerType) 2499private readonly Func<EventSource?> _eventSourceFactory; 2891foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 2893if (eventSourceRef.TryGetTarget(out EventSource? eventSource) && eventSource.Guid == m_guid && !eventSource.IsDisposed) 3127if (reflectionOnly && ret.FullName != typeof(EventSource).FullName || 3128!reflectionOnly && ret != typeof(EventSource)) 3152EventSource? source, 3245if (eventSourceType != typeof(EventSource)) 3879if (!EventSource.IsSupported) 3915private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 3916private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3918private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 3921internal static EventSource? GetMetricsEventSource() 3923return GetInstance(null) as EventSource; 3933internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 3951EventSource.OverrideEventProvider etwProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.ETW); 3969EventSource.OverrideEventProvider eventPipeProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.EventPipe); 3986if (!EventSource.IsSupported) 3996Func<EventSource?>[] factories; 4002foreach (Func<EventSource?> factory in factories) 4008internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4012s_preregisteredEtwProviders.Remove(id, out EventSource.OverrideEventProvider? provider); 4018internal static EventSource.OverrideEventProvider? TryGetPreregisteredEventPipeProvider(string name) 4022s_preregisteredEventPipeProviders.Remove(name, out EventSource.OverrideEventProvider? provider); 4061/// of <see cref="EventSource"/>), in the current appdomain. When a new EventListener is created 4203public void EnableEvents(EventSource eventSource, EventLevel level) 4218public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword) 4234public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string?>? arguments) 4252public void DisableEvents(EventSource eventSource) 4273protected internal static int EventSourceIndex(EventSource eventSource) { return eventSource.m_id; } 4288protected internal virtual void OnEventSourceCreated(EventSource eventSource) 4322internal static void AddEventSource(EventSource newEventSource) 4337WeakReference<EventSource> weakRef = s_EventSources[i]; 4349s_EventSources.Add(new WeakReference<EventSource>(newEventSource)); 4385Debug.Assert(EventSource.IsSupported); 4386List<EventSource> sourcesToDispose = new List<EventSource>(); 4390foreach (WeakReference<EventSource> esRef in s_EventSources) 4392if (esRef.TryGetTarget(out EventSource? es)) 4402foreach (EventSource es in sourcesToDispose) 4409private static void CallDisableEventsIfNecessary(EventDispatcher eventDispatcher, EventSource eventSource) 4453WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4454foreach (WeakReference<EventSource> eventSourceRef in eventSourcesSnapshot) 4456if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4473foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4475if (eventSourceRef.TryGetTarget(out EventSource? eventSource) 4536foreach (WeakReference<EventSource> eventSourceRef in s_EventSources) 4539if (!eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4577Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null); 4618WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4628WeakReference<EventSource> eventSourceRef = eventSourcesSnapshot[i]; 4629if (eventSourceRef.TryGetTarget(out EventSource? eventSource)) 4670internal static List<WeakReference<EventSource>>? s_EventSources; 4731internal EventCommandEventArgs(EventCommand command, IDictionary<string, string?>? arguments, EventSource eventSource, 4745internal EventSource eventSource; 4768public EventSource? EventSource 4781private ref EventSource.EventMetadata Metadata => ref CollectionsMarshal.GetValueRefOrNullRef(EventSource.m_eventData!, EventId); 4808_activityId = EventSource.CurrentThreadActivityId; 4837public EventSource EventSource { get; } 4922internal EventWrittenEventArgs(EventSource eventSource, int eventId) 4929internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 5002/// Any instance methods in a class that subclasses <see cref="EventSource"/> and that return void are 5715bool 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;
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
67return EventSource.CurrentThreadActivityId; 72EventSource.SetCurrentThreadActivityId(ActivityId);