22 references to Throw
Microsoft.Extensions.Diagnostics.Testing (22)
Logging\FakeLogCollector.cs (3)
28_options = Throw.IfNullOrMemberNull(options, options?.Value); 46return new FakeLogCollector(Options.Options.Create(Throw.IfNull(options))); 96Throw.InvalidOperationException("No records logged.");
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 (7)
51_instrument = Throw.IfNull(instrument); 65_instrument = Throw.IfNull(instrument); 87_ = Throw.IfNullOrEmpty(meterName); 88_ = Throw.IfNullOrEmpty(instrumentName); 102_ = Throw.IfNull(meter); 103_ = Throw.IfNullOrEmpty(instrumentName); 211_ = Throw.IfLessThan(minCount, 1);