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