19 references to IfNull
Microsoft.Extensions.Telemetry.Abstractions (19)
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\LatencyRegistryServiceCollectionExtensions.cs (6)
24
_ = Throw.
IfNull
(services);
25
_ = Throw.
IfNull
(names);
42
_ = Throw.
IfNull
(services);
43
_ = Throw.
IfNull
(names);
60
_ = Throw.
IfNull
(services);
61
_ = Throw.
IfNull
(names);
Logging\TagNameAttribute.cs (1)
27
Name = Throw.
IfNull
(name);
Logging\TagProviderAttribute.cs (1)
65
ProviderType = Throw.
IfNull
(providerType);
src\Shared\Pools\PoolFactory.cs (1)
57
_ = Throw.
IfNull
(policy);