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)
30var value = Throw.IfMemberNull(options, options.Value); 31_logOnlyUnhealthy = Throw.IfMemberNull(options, options.Value.LogOnlyUnhealthy); 44_ = Throw.IfNull(report);