9 references to _subscriptions
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Metrics\Instrument.common.cs (1)
96DiagNode<ListenerSubscription>? current = _subscriptions.First;
System\Diagnostics\Metrics\Instrument.cs (8)
140public bool Enabled => _subscriptions.First is not null; 150DiagNode<ListenerSubscription>? current = _subscriptions.First; 157_subscriptions.Clear(); 175if (!_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener))) 177ListenerSubscription oldSubscription = _subscriptions.Remove(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 178_subscriptions.AddIfNotExist(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)); 187internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State; 197DiagNode<ListenerSubscription>? current = _subscriptions.First;