3 instantiations of ListenerState
Microsoft.Extensions.Diagnostics (3)
Tracing\DefaultActivitySourceFactory.cs (3)
572public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 591=> new(rules, ComputeHasOperationNameRules(rules), new Dictionary<(string, bool), SourceFilterState>()); 594=> new(Rules, HasOperationNameRules, sourceFilterStates);
17 references to ListenerState
Microsoft.Extensions.Diagnostics (17)
Tracing\DefaultActivitySourceFactory.cs (17)
200private ListenerState _state; 212_state = ListenerState.Empty; 228_state = ListenerState.Empty; 243if (!overwrite && !ReferenceEquals(_state, ListenerState.Empty)) 248ListenerState newState = ListenerState.Create(rules); 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); 324private bool IsEnabledFast(ListenerState state, ActivitySource source, string operationName) 389ListenerState state = Volatile.Read(ref _state); 402ListenerState newState = state.WithSourceFilterStates(newDict); 572public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 590public static ListenerState Create(List<TracingRule> rules) 593public ListenerState WithSourceFilterStates(Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates)