10 writes to _state
Microsoft.Extensions.Diagnostics (10)
Tracing\DefaultActivitySourceFactory.cs (10)
216
_state
= ListenerState.Empty;
232
_state
= ListenerState.Empty;
254
Volatile.Write(ref
_state
, newState);
276
ListenerState state = Volatile.Read(ref
_state
);
288
ListenerState state = Volatile.Read(ref
_state
);
300
ListenerState state = Volatile.Read(ref
_state
);
310
ListenerState state = Volatile.Read(ref
_state
);
320
ListenerState state = Volatile.Read(ref
_state
);
393
ListenerState state = Volatile.Read(ref
_state
);
407
if (Interlocked.CompareExchange(ref
_state
, newState, state) == state)
2 references to _state
Microsoft.Extensions.Diagnostics (2)
Tracing\DefaultActivitySourceFactory.cs (2)
247
if (!overwrite && !ReferenceEquals(
_state
, ListenerState.Empty))
253
bool delegatesNeedSwap = newState.HasOperationNameRules !=
_state
.HasOperationNameRules;