16 references to IfNull
Microsoft.Extensions.Diagnostics.Testing (16)
Logging\FakeLogCollector.cs (1)
46return new FakeLogCollector(Options.Options.Create(Throw.IfNull(options)));
Logging\FakeLogCollectorDebugView.cs (1)
18_collector = Throw.IfNull(collector);
Logging\FakeLogger.cs (1)
65_ = Throw.IfNull(formatter);
Logging\FakeLoggerBuilderExtensions.cs (4)
27_ = Throw.IfNull(builder); 28_ = Throw.IfNull(section); 45_ = Throw.IfNull(builder); 46_ = Throw.IfNull(configure);
Logging\FakeLoggerProvider.cs (1)
49_scopeProvider = Throw.IfNull(scopeProvider);
Logging\FakeLogRecord.cs (2)
36Message = Throw.IfNull(message); 37Scopes = Throw.IfNull(scopes);
Metrics\CollectedMeasurement.cs (3)
61foreach (var kvp in Throw.IfNull(tags)) 84foreach (var key in Throw.IfNull(tags)) 107public bool MatchesTags(params string[] tags) => ContainsTags(Throw.IfNull(tags)) && (Tags.Count == tags.Length);
Metrics\MetricCollector.cs (3)
51_instrument = Throw.IfNull(instrument); 65_instrument = Throw.IfNull(instrument); 102_ = Throw.IfNull(meter);