10 writes to _state
Microsoft.Extensions.Diagnostics (10)
Tracing\DefaultActivitySourceFactory.cs (10)
212
_state
= ListenerState.Empty;
228
_state
= ListenerState.Empty;
250
Volatile.Write(ref
_state
, newState);
272
ListenerState state = Volatile.Read(ref
_state
);
284
ListenerState state = Volatile.Read(ref
_state
);
296
ListenerState state = Volatile.Read(ref
_state
);
306
ListenerState state = Volatile.Read(ref
_state
);
316
ListenerState state = Volatile.Read(ref
_state
);
389
ListenerState state = Volatile.Read(ref
_state
);
403
if (Interlocked.CompareExchange(ref
_state
, newState, state) == state)
2 references to _state
Microsoft.Extensions.Diagnostics (2)
Tracing\DefaultActivitySourceFactory.cs (2)
243
if (!overwrite && !ReferenceEquals(
_state
, ListenerState.Empty))
249
bool delegatesNeedSwap = newState.HasOperationNameRules !=
_state
.HasOperationNameRules;