1 write to _listeners
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceSource.cs (1)
99
_listeners
= new TraceListenerCollection();
38 references to _listeners
System.Diagnostics.TraceSource (38)
System\Diagnostics\TraceSource.cs (38)
105
Debug.Assert(
_listeners
!= null);
106
_listeners
.Add(new DefaultTraceListener());
113
if (
_listeners
!= null)
118
foreach (TraceListener? listener in
_listeners
)
129
if (
_listeners
!= null)
135
foreach (TraceListener? listener in
_listeners
)
143
foreach (TraceListener? listener in
_listeners
)
194
if (_internalSwitch!.ShouldTrace(eventType) &&
_listeners
!= null)
203
for (int i = 0; i <
_listeners
.Count; i++)
205
TraceListener listener =
_listeners
[i];
213
for (int i = 0; i <
_listeners
.Count; i++)
215
TraceListener listener =
_listeners
[i];
239
if (_internalSwitch!.ShouldTrace(eventType) &&
_listeners
!= null)
248
for (int i = 0; i <
_listeners
.Count; i++)
250
TraceListener listener =
_listeners
[i];
258
for (int i = 0; i <
_listeners
.Count; i++)
260
TraceListener listener =
_listeners
[i];
284
if (_internalSwitch!.ShouldTrace(eventType) &&
_listeners
!= null)
293
for (int i = 0; i <
_listeners
.Count; i++)
295
TraceListener listener =
_listeners
[i];
303
for (int i = 0; i <
_listeners
.Count; i++)
305
TraceListener listener =
_listeners
[i];
329
if (_internalSwitch!.ShouldTrace(eventType) &&
_listeners
!= null)
338
for (int i = 0; i <
_listeners
.Count; i++)
340
TraceListener listener =
_listeners
[i];
348
for (int i = 0; i <
_listeners
.Count; i++)
350
TraceListener listener =
_listeners
[i];
374
if (_internalSwitch!.ShouldTrace(eventType) &&
_listeners
!= null)
383
for (int i = 0; i <
_listeners
.Count; i++)
385
TraceListener listener =
_listeners
[i];
393
for (int i = 0; i <
_listeners
.Count; i++)
395
TraceListener listener =
_listeners
[i];
436
if (_internalSwitch!.ShouldTrace(TraceEventType.Transfer) &&
_listeners
!= null)
443
for (int i = 0; i <
_listeners
.Count; i++)
445
TraceListener listener =
_listeners
[i];
457
for (int i = 0; i <
_listeners
.Count; i++)
459
TraceListener listener =
_listeners
[i];
546
return
_listeners
!;