1 write to Listener
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MeterListener.cs (1)
335
Listener
= listener;
13 references to Listener
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\Metrics\Instrument.common.cs (1)
99
current.Value.
Listener
.NotifyMeasurement(this, measurement, tags, current.Value.State);
System\Diagnostics\Metrics\Instrument.cs (12)
153
current.Value.
Listener
.DisableMeasurementEvents(this);
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
));
179
oldStateStored = object.ReferenceEquals(oldSubscription.
Listener
, subscription.
Listener
);
187
internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.
Listener
, s2.
Listener
)).State;
200
if (object.ReferenceEquals(listener, current.Value.
Listener
))