3 writes to _instrument
Microsoft.Extensions.Diagnostics.Testing (3)
Metrics\MetricCollector.cs (3)
51_instrument = Throw.IfNull(instrument); 65_instrument = Throw.IfNull(instrument); 278if (Interlocked.CompareExchange(ref _instrument, instrument, null) is null)
4 references to _instrument
Microsoft.Extensions.Diagnostics.Testing (4)
Metrics\MetricCollector.cs (4)
153public 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.")