22 types derived from EventListener
Aspire.RabbitMQ.Client (1)
dotnet-dev-certs (1)
Http3SampleApp (1)
HttpStress (1)
Infrastructure.Common (1)
InMemory.FunctionalTests (1)
Interop.FunctionalTests (1)
InteropClient (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Telemetry.Tests (2)
System.Private.CoreLib (1)
50 references to EventListener
Aspire.RabbitMQ.Client (1)
HttpStress (1)
mscorlib (1)
netstandard (1)
System.Diagnostics.Tracing (1)
System.Private.CoreLib (45)
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