3 writes to _instrument
Microsoft.Extensions.Diagnostics.Testing (3)
Metrics\MetricCollector.cs (3)
51
_instrument
= Throw.IfNull(instrument);
65
_instrument
= Throw.IfNull(instrument);
278
if (Interlocked.CompareExchange(ref
_instrument
, instrument, null) is null)
4 references to _instrument
Microsoft.Extensions.Diagnostics.Testing (4)
Metrics\MetricCollector.cs (4)
153
public Instrument? Instrument =>
_instrument
;
341
=>
_instrument
!= null
342
? new(nameof(MetricCollector<T>), $"The metric collector instance for instrument '{
_instrument
.Name}' of meter '{
_instrument
.Meter.Name}' has been disposed.")