71 types derived from EventSource
Aspire.Hosting (1)
AspireEventSource.cs (1)
10internal sealed class AspireEventSource : EventSource
dotnet-dev-certs (1)
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
illink (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
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.InternalTesting.Tests (6)
CollectingEventListenerTest.cs (1)
76public class TestEventSource : EventSource
EventSourceValidatorTests.cs (5)
67private sealed class CorrectEventSource : EventSource 80private sealed class MismatchedIdEventSource : EventSource 87private sealed class DuplicateIdEventSource : EventSource 97private sealed class EmptyEventSource : EventSource 102private sealed class MultiParamEventSource : EventSource
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelEventSource.cs (1)
17internal sealed class KestrelEventSource : EventSource
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public 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)
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
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
RepoTasks (1)
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.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\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 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\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 partial 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 partial 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 (9)
NativeRuntimeEventSource.g.cs (1)
9internal sealed partial class NativeRuntimeEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Buffers\ArrayPoolEventSource.cs (1)
10internal sealed partial class ArrayPoolEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\FrameworkEventSource.cs (1)
10internal sealed partial class FrameworkEventSource : EventSource
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (1)
26internal 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)
14internal sealed partial class RuntimeEventSource : EventSource
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.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainEventSource.cs (1)
11internal sealed partial 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 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
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
1093public sealed class CertificateManagerEventSource : EventSource
190 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)
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 (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.AspNetCore.Server.Kestrel.Core.Tests (3)
KestrelEventSourceTests.cs (3)
26Assert.Equal("Microsoft-AspNetCore-Server-Kestrel", EventSource.GetName(esType)); 27Assert.Equal(Guid.Parse("bdeb4676-a36e-5442-db99-4764e2326c7d", CultureInfo.InvariantCulture), EventSource.GetGuid(esType)); 28Assert.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.CodeAnalysis (2)
CodeAnalysisEventSource.Common.cs (2)
54fixed (EventSource.EventData* dataPtr = data) 88fixed (EventSource.EventData* dataPtr = data)
Microsoft.CodeAnalysis.Workspaces (2)
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)
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\net11.0\System.Diagnostics.Tracing.Forwards.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventSource))]
System.Private.CoreLib (114)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
132if (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\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\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 (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) 3937private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 3938private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3940private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 3943internal static EventSource? GetMetricsEventSource() 3945return GetInstance(null) as EventSource; 3955internal static unsafe void PreregisterEventProviders(Guid id, string name, Func<EventSource?> eventSourceFactory) 3973EventSource.OverrideEventProvider etwProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.ETW); 3991EventSource.OverrideEventProvider eventPipeProvider = new EventSource.OverrideEventProvider(eventSourceFactory, EventProviderType.EventPipe); 4008if (!EventSource.IsSupported) 4018Func<EventSource?>[] factories; 4024foreach (Func<EventSource?> factory in factories) 4030internal static EventSource.OverrideEventProvider? TryGetPreregisteredEtwProvider(Guid id) 4034s_preregisteredEtwProviders.Remove(id, out EventSource.OverrideEventProvider? provider); 4040internal static EventSource.OverrideEventProvider? TryGetPreregisteredEventPipeProvider(string name) 4044s_preregisteredEventPipeProviders.Remove(name, out EventSource.OverrideEventProvider? provider); 4122internal EventCommandEventArgs(EventCommand command, IDictionary<string, string?>? arguments, EventSource eventSource, 4136internal EventSource eventSource; 4159public EventSource? EventSource 4172private ref EventSource.EventMetadata Metadata => ref CollectionsMarshal.GetValueRefOrNullRef(EventSource.m_eventData!, EventId); 4199_activityId = EventSource.CurrentThreadActivityId; 4228public EventSource EventSource { get; } 4313internal EventWrittenEventArgs(EventSource eventSource, int eventId) 4320internal unsafe EventWrittenEventArgs(EventSource eventSource, int eventId, Guid* pActivityID, Guid* pChildActivityID) 4393/// Any instance methods in a class that subclasses <see cref="EventSource"/> and that return void are
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\ManifestBuilder.cs (1)
435bool isbitmap = EventSource.IsCustomAttributeDefinedHelper(enumType, typeof(FlagsAttribute), flags);
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)
2391EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 2453EventSource.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)
1431internal static bool EnableWorkerTracking => IsWorkerTrackingEnabledInConfig && EventSource.IsSupported;
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
67return EventSource.CurrentThreadActivityId; 72EventSource.SetCurrentThreadActivityId(ActivityId);