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