17 references to IfNull
Microsoft.Extensions.Diagnostics.HealthChecks.Common (17)
CommonHealthChecksExtensions.ApplicationLifecycle.cs (4)
24
=> Throw.
IfNull
(builder)
25
.AddCheck<ApplicationLifecycleHealthCheck>("ApplicationLifecycle", tags: Throw.
IfNull
(tags));
35
=> Throw.
IfNull
(builder)
36
.AddCheck<ApplicationLifecycleHealthCheck>("ApplicationLifecycle", tags: Throw.
IfNull
(tags));
CommonHealthChecksExtensions.Manual.cs (6)
22
=> Throw.
IfNull
(builder)
24
.AddCheck<ManualHealthCheckService>("Manual", tags: Throw.
IfNull
(tags));
34
=> Throw.
IfNull
(builder)
36
.AddCheck<ManualHealthCheckService>("Manual", tags: Throw.
IfNull
(tags));
44
=> Throw.
IfNull
(manualHealthCheck).Result = HealthCheckResult.Healthy();
53
=> Throw.
IfNull
(manualHealthCheck).Result = HealthCheckResult.Unhealthy(Throw.IfNullOrWhitespace(reason));
CommonHealthChecksExtensions.TelemetryPublisher.cs (5)
21
=> Throw.
IfNull
(services)
34
=> Throw.
IfNull
(services)
35
.Configure<TelemetryHealthCheckPublisherOptions>(Throw.
IfNull
(section))
48
=> Throw.
IfNull
(services)
49
.Configure(Throw.
IfNull
(configure))
src\Shared\Pools\PoolFactory.cs (1)
57
_ = Throw.
IfNull
(policy);
TelemetryHealthCheckPublisher.cs (1)
44
_ = Throw.
IfNull
(report);