29 references to Throw
Microsoft.Extensions.Diagnostics.HealthChecks.Common (29)
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 (7)
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 (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);
TelemetryHealthCheckPublisher.cs (3)
30
var value =
Throw
.IfMemberNull(options, options.Value);
31
_logOnlyUnhealthy =
Throw
.IfMemberNull(options, options.Value.LogOnlyUnhealthy);
44
_ =
Throw
.IfNull(report);