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)
36
MethodType =
Throw
.IfNull(methodType);
37
RequestRoute =
Throw
.IfNull(requestRoute);
38
RequestName =
Throw
.IfNull(requestName);
Latency\NullLatencyContextServiceCollectionExtensions.cs (1)
24
_ =
Throw
.IfNull(services);
Latency\Registration\CheckpointToken.cs (1)
34
Name =
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);
75
Throw
.ArgumentException(nameof(names), "Name is either null or whitespace");
Latency\Registration\MeasureToken.cs (1)
34
Name =
Throw
.IfNullOrWhitespace(name);
Latency\Registration\TagToken.cs (1)
34
Name =
Throw
.IfNullOrWhitespace(name);
Logging\LoggerMessageState.ReadOnlyList.cs (1)
13
public KeyValuePair<string, object?> this[int index] => _tags[
Throw
.IfOutOfRange(index, 0, TagsCount)];
Logging\TagNameAttribute.cs (1)
27
Name =
Throw
.IfNull(name);
Logging\TagProviderAttribute.cs (2)
65
ProviderType =
Throw
.IfNull(providerType);
66
ProviderMethod =
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);