2 instantiations of ListenerSubscription
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\Instrument.cs (1)
187
internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new
ListenerSubscription
(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State;
System\Diagnostics\Metrics\MeterListener.cs (1)
79
oldState = instrument.EnableMeasurement(new
ListenerSubscription
(this, state), out oldStateStored);
7 references to ListenerSubscription
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Metrics\Instrument.common.cs (1)
96
DiagNode<
ListenerSubscription
>? current = _subscriptions.First;
System\Diagnostics\Metrics\Instrument.cs (6)
29
internal readonly DiagLinkedList<
ListenerSubscription
> _subscriptions = new DiagLinkedList<
ListenerSubscription
>();
150
DiagNode<
ListenerSubscription
>? current = _subscriptions.First;
171
internal object? EnableMeasurement(
ListenerSubscription
subscription, out bool oldStateStored)
177
ListenerSubscription
oldSubscription = _subscriptions.Remove(subscription, (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener));
197
DiagNode<
ListenerSubscription
>? current = _subscriptions.First;