2 writes to s_EventSources
mscorlib (2)
system\diagnostics\eventing\eventsource.cs (2)
4410
s_EventSources
= new List<WeakReference>(2);
4580
Interlocked.CompareExchange(ref
s_EventSources
, new List<WeakReference>(2), null);
14 references to s_EventSources
mscorlib (14)
system\diagnostics\eventing\eventsource.cs (14)
479
foreach (WeakReference eventSourceRef in EventListener.
s_EventSources
)
3026
foreach (WeakReference eventSourceRef in EventListener.
s_EventSources
)
4409
if (
s_EventSources
== null)
4425
if (
s_EventSources
.Count % 64 == 63) // on every block of 64, fill up the block before continuing
4427
int i =
s_EventSources
.Count; // Work from the top down.
4431
WeakReference weakRef =
s_EventSources
[i];
4442
newIndex =
s_EventSources
.Count;
4443
s_EventSources
.Add(new WeakReference(newEventSource));
4466
foreach (var esRef in
s_EventSources
)
4487
foreach (WeakReference eventSourceRef in
s_EventSources
)
4538
foreach (WeakReference eventSourceRef in
s_EventSources
)
4579
if (
s_EventSources
== null)
4581
return
s_EventSources
;
4610
WeakReference[] eventSourcesSnapshot =
s_EventSources
.ToArray();