22 types derived from EventListener
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
128private sealed class RabbitMQEventSourceListener : EventListener
dotnet-dev-certs (1)
ReporterEventListener.cs (1)
12internal sealed class ReporterEventListener : EventListener
Http3SampleApp (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
10public sealed class HttpEventSourceListener : EventListener
HttpStress (1)
Program.cs (1)
730private sealed class HttpEventListener : EventListener
Infrastructure.Common (1)
TestEventListener.cs (1)
13public sealed class TestEventListener : EventListener
InMemory.FunctionalTests (1)
EventSourceTests.cs (1)
421private class TestEventListener : EventListener
Interop.FunctionalTests (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
10public sealed class HttpEventSourceListener : EventListener
InteropClient (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
10public sealed class HttpEventSourceListener : EventListener
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
18internal sealed class TestCounterListener : EventListener
src\Shared\EventSource.Testing\TestEventListener.cs (1)
8internal sealed class TestEventListener : EventListener
Microsoft.AspNetCore.Hosting.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
18internal sealed class TestCounterListener : EventListener
src\Shared\EventSource.Testing\TestEventListener.cs (1)
8internal sealed class TestEventListener : EventListener
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\EventSource.Testing\TestEventListener.cs (1)
8internal sealed class TestEventListener : EventListener
Microsoft.AspNetCore.InternalTesting (1)
Tracing\CollectingEventListener.cs (1)
11public class CollectingEventListener : EventListener
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
10public sealed class HttpEventSourceListener : EventListener
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (1)
3043private class TestEventListener : EventListener
WebHostTests.cs (1)
129private class TestEventListener : EventListener
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TestEventListener.cs (1)
11public sealed class TestEventListener : EventListener
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpRequestLatencyListener.cs (1)
12internal sealed class HttpRequestLatencyListener : EventListener
Microsoft.Extensions.Telemetry.Tests (2)
Http\TestEventListener.cs (1)
8internal sealed class TestEventListener : EventListener
Logging\SerialExtendedLoggerTests.cs (1)
101private sealed class LoggerEventListener : EventListener
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
14internal sealed partial class XplatEventLogger : EventListener
50 references to EventListener
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
126/// Implementation of <see cref="EventListener"/> that listens to events produced by the RabbitMQ.Client library.
HttpStress (1)
Program.cs (1)
72EventListener listener =
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
204[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventListener))]
netstandard (1)
netstandard.cs (1)
726[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventListener))]
System.Diagnostics.Tracing (1)
artifacts\obj\System.Diagnostics.Tracing\Debug\net10.0\System.Diagnostics.Tracing.Forwards.cs (1)
17[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.EventListener))]
System.Private.CoreLib (45)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
136EventListener.DisposeOnShutdown();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (1)
128int eventSourceIndex = EventListener.EventSourceIndex(eventSource);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (3)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>(); 46internal void SendCommand(EventListener eventListener, EventCommand command, bool enable, EventLevel level, EventKeywords matchAnyKeywords)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (2)
148lock (EventListener.EventListenersLock) 165Debug.Assert(!Monitor.IsEntered(EventListener.EventListenersLock));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (37)
199/// <see cref="EventListener.DisableEvents"/>) or cause actions to be performed by the eventSource, 205/// <see cref="EventListener"/> for more. 299private static readonly EventListener? persistent_Xplat_Listener = IsSupported ? XplatEventLogger.InitializePersistentListener() : null; 473lock (EventListener.EventListenersLock) 475Debug.Assert(EventListener.s_EventSources != null); 477foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 1541Debug.Assert(!Monitor.IsEntered(EventListener.EventListenersLock)); 1710EventListener.AddEventSource(this); 1728lock (EventListener.EventListenersLock) 1961private EventDispatcher? GetDispatcher(EventListener? listener) 2495EventListener? listener = null; 2610internal void SendCommand(EventListener? listener, EventProviderType eventProviderType, int perEventSourceSessionId, 2621lock (EventListener.EventListenersLock) 2663Debug.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 2879Debug.Assert(Monitor.IsEntered(EventListener.EventListenersLock)); 2890Debug.Assert(EventListener.s_EventSources != null, "should be called within lock on EventListener.EventListenersLock which ensures s_EventSources to be initialized"); 2891foreach (WeakReference<EventSource> eventSourceRef in EventListener.s_EventSources) 3578internal void AddListener(EventListener listener) 3580lock (EventListener.EventListenersLock) 4139args.EventSource!.AddListener((EventListener)obj!)); 4156EventListener cur = s_Listeners; 4163EventListener prev = s_Listeners; 4166EventListener? cur = prev.m_Next; 4360for (EventListener? listener = s_Listeners; listener != null; listener = listener.m_Next) 4444private static void RemoveReferencesToListenerInEventSources(EventListener listenerToRemove) 4524Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>(); 4525EventListener? cur = s_Listeners; 4550foreach (EventListener listener in allListeners.Keys) 4653internal volatile EventListener? m_Next; // These form a linked list in s_Listeners 4661internal static EventListener? s_Listeners; 4730EventListener? listener, EventProviderType eventProviderType, int perEventSourceSessionId, bool enable, EventLevel level, EventKeywords matchAnyKeyword) 4748internal EventListener? listener; 4759/// EventSourceCreatedEventArgs is passed to <see cref="EventListener.EventSourceCreated"/> 4775/// <see cref="EventListener.OnEventWritten"/> when an event is fired. 5244internal EventDispatcher(EventDispatcher? next, Dictionary<int, bool>? eventEnabled, EventListener listener) 5252internal readonly EventListener m_Listener; // The dispatcher this entry is for
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
28public static EventListener? InitializePersistentListener()