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