34 references to Throw
Microsoft.Extensions.Telemetry.Abstractions (34)
Enrichment\EnrichmentServiceCollectionExtensions.cs (6)
25=> Throw.IfNull(services).AddSingleton<ILogEnricher, T>(); 35=> Throw.IfNull(services).AddSingleton(Throw.IfNull(enricher)); 46=> Throw.IfNull(services).AddSingleton<IStaticLogEnricher, T>(); 56=> Throw.IfNull(services).AddSingleton(Throw.IfNull(enricher));
Http\RequestMetadata.cs (3)
36MethodType = Throw.IfNull(methodType); 37RequestRoute = Throw.IfNull(requestRoute); 38RequestName = Throw.IfNull(requestName);
Latency\NullLatencyContextServiceCollectionExtensions.cs (1)
24_ = Throw.IfNull(services);
Latency\Registration\CheckpointToken.cs (1)
34Name = Throw.IfNullOrWhitespace(name);
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (7)
24_ = Throw.IfNull(services); 25_ = Throw.IfNull(names); 42_ = Throw.IfNull(services); 43_ = Throw.IfNull(names); 60_ = Throw.IfNull(services); 61_ = Throw.IfNull(names); 75Throw.ArgumentException(nameof(names), "Name is either null or whitespace");
Latency\Registration\MeasureToken.cs (1)
34Name = Throw.IfNullOrWhitespace(name);
Latency\Registration\TagToken.cs (1)
34Name = Throw.IfNullOrWhitespace(name);
Logging\LoggerMessageState.ReadOnlyList.cs (1)
13public KeyValuePair<string, object?> this[int index] => _tags[Throw.IfOutOfRange(index, 0, TagsCount)];
Logging\TagNameAttribute.cs (1)
27Name = Throw.IfNull(name);
Logging\TagProviderAttribute.cs (2)
65ProviderType = Throw.IfNull(providerType); 66ProviderMethod = Throw.IfNullOrWhitespace(providerMethod);
src\Shared\Pools\PoolFactory.cs (10)
42_ = Throw.IfLessThan(maxCapacity, 1); 57_ = Throw.IfNull(policy); 58_ = Throw.IfLessThan(maxCapacity, 1); 75_ = Throw.IfLessThan(maxCapacity, 1); 88_ = Throw.IfLessThan(maxCapacity, 1); 89_ = Throw.IfLessThan(maxStringBuilderCapacity, 1); 116_ = Throw.IfLessThan(maxCapacity, 1); 136_ = Throw.IfLessThan(maxCapacity, 1); 155_ = Throw.IfLessThan(maxCapacity, 1); 177_ = Throw.IfLessThan(maxCapacity, 1);