3 instantiations of ListenerState
Microsoft.Extensions.Diagnostics (3)
Tracing\DefaultActivitySourceFactory.cs (3)
576public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 595=> new(rules, ComputeHasOperationNameRules(rules), new Dictionary<(string, bool), SourceFilterState>()); 598=> new(Rules, HasOperationNameRules, sourceFilterStates);
17 references to ListenerState
Microsoft.Extensions.Diagnostics (17)
Tracing\DefaultActivitySourceFactory.cs (17)
204private ListenerState _state; 216_state = ListenerState.Empty; 232_state = ListenerState.Empty; 247if (!overwrite && !ReferenceEquals(_state, ListenerState.Empty)) 252ListenerState newState = ListenerState.Create(rules); 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); 328private bool IsEnabledFast(ListenerState state, ActivitySource source, string operationName) 393ListenerState state = Volatile.Read(ref _state); 406ListenerState newState = state.WithSourceFilterStates(newDict); 576public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 594public static ListenerState Create(List<TracingRule> rules) 597public ListenerState WithSourceFilterStates(Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates)