6 references to AddAsyncCheck
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
DefaultHealthCheckServiceTest.cs (5)
74
b.
AddAsyncCheck
("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data)), healthyCheckTags);
75
b.
AddAsyncCheck
("DegradedCheck", _ => Task.FromResult(HealthCheckResult.Degraded(DegradedMessage)), degradedCheckTags);
76
b.
AddAsyncCheck
("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception)), unhealthyCheckTags);
129
b.
AddAsyncCheck
("ExceptionCheck", _ => throw new Exception(ExceptionMessage), exceptionTags);
130
b.
AddAsyncCheck
("OperationExceptionCheck", _ => throw new OperationCanceledException(OperationCancelledMessage), operationExceptionTags);
DependencyInjection\HealthChecksBuilderTest.cs (1)
184
services.AddHealthChecks().
AddAsyncCheck
("test", (_) =>