24 instantiations of HealthCheckResult
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
148return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
31return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Elastic.Clients.Elasticsearch (2)
ElasticsearchHealthCheck.cs (2)
31: new HealthCheckResult(context.Registration.FailureStatus); 35return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Hosting.Elasticsearch (2)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (2)
31: new HealthCheckResult(context.Registration.FailureStatus); 35return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
18_ => new HealthCheckResult(context.Registration.FailureStatus)
Aspire.Hosting.Qdrant (2)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (2)
26: new HealthCheckResult(HealthStatus.Unhealthy); 30return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.Milvus.Client (2)
MilvusHealthCheck.cs (2)
28: new HealthCheckResult(HealthStatus.Unhealthy, description: milvusHealthState.ToString()); 32return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
18_ => new HealthCheckResult(context.Registration.FailureStatus)
Aspire.Qdrant.Client (2)
QdrantHealthCheck.cs (2)
26: new HealthCheckResult(HealthStatus.Unhealthy); 30return new HealthCheckResult(context.Registration.FailureStatus, exception: ex);
HealthChecksSample (3)
DbConnectionHealthCheck.cs (1)
51return new HealthCheckResult(status: context.Registration.FailureStatus, exception: ex);
GCInfoHealthCheck.cs (1)
72return Task.FromResult(new HealthCheckResult(
SlowDependencyHealthCheck.cs (1)
28return Task.FromResult(new HealthCheckResult(
HealthChecksSandbox.AppHost (3)
Program.cs (3)
34() => new HealthCheckResult(status, description, new InvalidOperationException(exceptionMessage)) 41return new HealthCheckResult(HealthStatus.Unhealthy, "Initial failure state."); 44return new HealthCheckResult(HealthStatus.Healthy, "Healthy beginning second health check run.");
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (3)
HealthCheckResult.cs (3)
60return new HealthCheckResult(status: HealthStatus.Healthy, description, exception: null, data); 72return new HealthCheckResult(status: HealthStatus.Degraded, description, exception: exception, data); 84return new HealthCheckResult(status: HealthStatus.Unhealthy, description, exception, data);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ManualHealthCheckTracker.cs (1)
54return new HealthCheckResult(worstStatus, stringBuilder.ToString());
212 references to HealthCheckResult
Aspire.Azure.Messaging.WebPubSub (2)
AspireWebPubSubExtensions.cs (2)
138public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 144return HealthCheckResult.Healthy();
Aspire.Azure.Search.Documents (2)
AzureSearchIndexHealthCheck.cs (2)
21public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 27return HealthCheckResult.Healthy();
Aspire.Elastic.Clients.Elasticsearch (2)
ElasticsearchHealthCheck.cs (2)
22public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 30? HealthCheckResult.Healthy()
Aspire.Hosting.Azure.Tests (6)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
29var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 52healthCheckTcs.SetResult(HealthCheckResult.Healthy());
AzureEventHubsExtensionsTests.cs (2)
29var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 53healthCheckTcs.SetResult(HealthCheckResult.Healthy());
AzureStorageEmulatorFunctionalTests.cs (2)
25var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 54healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Elasticsearch (2)
src\Components\Aspire.Elastic.Clients.Elasticsearch\ElasticsearchHealthCheck.cs (2)
22public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 30? HealthCheckResult.Healthy()
Aspire.Hosting.Elasticsearch.Tests (2)
ElasticsearchFunctionalTests.cs (2)
213var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 235healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Garnet.Tests (2)
GarnetFunctionalTests.cs (2)
26var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 48healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Kafka.Tests (2)
KafkaFunctionalTests.cs (2)
27var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 49healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.MongoDB.Tests (2)
MongoDbFunctionalTests.cs (2)
38var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 60healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
34var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 56healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Nats (6)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (6)
11public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 15NatsConnectionState.Open => HealthCheckResult.Healthy(), 16NatsConnectionState.Connecting or NatsConnectionState.Reconnecting => HealthCheckResult.Degraded(), 24private static async Task<HealthCheckResult> TryConnect(INatsConnection natsConnection) 29return HealthCheckResult.Healthy(); 33return HealthCheckResult.Unhealthy();
Aspire.Hosting.Nats.Tests (2)
NatsFunctionalTests.cs (2)
329var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 351healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Oracle.Tests (2)
OracleFunctionalTests.cs (2)
357var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 379healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
37var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 62healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Qdrant (2)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (2)
18public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 25? HealthCheckResult.Healthy()
Aspire.Hosting.Qdrant.Tests (2)
QdrantFunctionalTests.cs (2)
229var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 251healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.RabbitMQ.Tests (2)
RabbitMQFunctionalTests.cs (2)
28var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 50healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
32var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 54healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
28var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 50healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Tests (10)
Health\ResourceHealthCheckServiceTests.cs (8)
53builder.Services.AddHealthChecks().AddCheck("healthcheck_a", () => HealthCheckResult.Healthy()); 95return HealthCheckResult.Healthy(); 142return HealthCheckResult.Unhealthy(); 249var checkStatus = HealthCheckResult.Unhealthy(); 294checkStatus = HealthCheckResult.Healthy(); 312return HealthCheckResult.Healthy(); 361builder.Services.AddHealthChecks().AddCheck("parent_test", () => HealthCheckResult.Healthy());
HealthCheckTests.cs (2)
68var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 92healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Hosting.Valkey.Tests (2)
ValkeyFunctionalTests.cs (2)
203var healthCheckTcs = new TaskCompletionSource<HealthCheckResult>(); 225healthCheckTcs.SetResult(HealthCheckResult.Healthy());
Aspire.Milvus.Client (2)
MilvusHealthCheck.cs (2)
20public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 27? HealthCheckResult.Healthy()
Aspire.NATS.Net (6)
NatsHealthCheck.cs (6)
11public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 15NatsConnectionState.Open => HealthCheckResult.Healthy(), 16NatsConnectionState.Connecting or NatsConnectionState.Reconnecting => HealthCheckResult.Degraded(), 24private static async Task<HealthCheckResult> TryConnect(INatsConnection natsConnection) 29return HealthCheckResult.Healthy(); 33return HealthCheckResult.Unhealthy();
Aspire.Qdrant.Client (2)
QdrantHealthCheck.cs (2)
18public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 25? HealthCheckResult.Healthy()
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
158public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Aspire.Seq (3)
SeqHealthCheck.cs (3)
19public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext _, CancellationToken cancellationToken = new CancellationToken()) 25? HealthCheckResult.Healthy() 26: HealthCheckResult.Unhealthy();
CatalogDb (5)
CatalogDbInitializerHealthCheck.cs (5)
7public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 13{ IsCompletedSuccessfully: true } => Task.FromResult(HealthCheckResult.Healthy()), 14{ IsFaulted: true } => Task.FromResult(HealthCheckResult.Unhealthy(task.Exception?.InnerException?.Message, task.Exception)), 15{ IsCanceled: true } => Task.FromResult(HealthCheckResult.Unhealthy("Database initialization was canceled")), 16_ => Task.FromResult(HealthCheckResult.Degraded("Database initialization is still in progress"))
HealthChecksSample (5)
DbConnectionHealthCheck.cs (2)
33public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken)) 55return HealthCheckResult.Healthy();
GCInfoHealthCheck.cs (1)
49public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken))
SlowDependencyHealthCheck.cs (2)
21public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default(CancellationToken)) 25return Task.FromResult(HealthCheckResult.Healthy("Dependency is ready"));
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (20)
HealthCheckMiddlewareTests.cs (20)
171.AddCheck("Foo", () => HealthCheckResult.Healthy("A-ok!")) 172.AddCheck("Bar", () => HealthCheckResult.Healthy("A-ok!")) 173.AddCheck("Baz", () => HealthCheckResult.Healthy("A-ok!")); 204.AddCheck("Foo", () => HealthCheckResult.Healthy("A-ok!")) 205.AddCheck("Bar", () => HealthCheckResult.Degraded("Not so great.")) 206.AddCheck("Baz", () => HealthCheckResult.Healthy("A-ok!")); 237.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 238.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 239.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 270.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 272.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 316.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 317.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 318.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 353.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 354.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 355.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))); 490.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!"))) 492.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("A-ok!"))) 493.AddAsyncCheck("Baz", () => Task.FromResult(HealthCheckResult.Healthy("A-ok!")));
Microsoft.Extensions.Diagnostics.HealthChecks (12)
DefaultHealthCheckService.cs (1)
96HealthCheckResult result;
DelegateHealthCheck.cs (3)
16private readonly Func<CancellationToken, Task<HealthCheckResult>> _check; 22public DelegateHealthCheck(Func<CancellationToken, Task<HealthCheckResult>> check) 33public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) => _check(cancellationToken);
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (8)
31Func<HealthCheckResult> check, 50Func<HealthCheckResult> check, 74Func<CancellationToken, HealthCheckResult> check, 93Func<CancellationToken, HealthCheckResult> check, 117Func<Task<HealthCheckResult>> check, 136Func<Task<HealthCheckResult>> check, 160Func<CancellationToken, Task<HealthCheckResult>> check, 179Func<CancellationToken, Task<HealthCheckResult>> check,
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (11)
HealthCheckResult.cs (10)
17/// Creates a new <see cref="HealthCheckResult"/> with the specified values for <paramref name="status"/>, 53/// Creates a <see cref="HealthCheckResult"/> representing a healthy component. 57/// <returns>A <see cref="HealthCheckResult"/> representing a healthy component.</returns> 58public static HealthCheckResult Healthy(string? description = null, IReadOnlyDictionary<string, object>? data = null) 64/// Creates a <see cref="HealthCheckResult"/> representing a degraded component. 69/// <returns>A <see cref="HealthCheckResult"/> representing a degraged component.</returns> 70public static HealthCheckResult Degraded(string? description = null, Exception? exception = null, IReadOnlyDictionary<string, object>? data = null) 76/// Creates a <see cref="HealthCheckResult"/> representing an unhealthy component. 81/// <returns>A <see cref="HealthCheckResult"/> representing an unhealthy component.</returns> 82public static HealthCheckResult Unhealthy(string? description = null, Exception? exception = null, IReadOnlyDictionary<string, object>? data = null)
IHealthCheck.cs (1)
21Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (20)
ApplicationLifecycleHealthCheck.cs (9)
16private static readonly Task<HealthCheckResult> _healthy = Task.FromResult(HealthCheckResult.Healthy()); 17private static readonly Task<HealthCheckResult> _unhealthyNotStarted = Task.FromResult(HealthCheckResult.Unhealthy("Not Started")); 18private static readonly Task<HealthCheckResult> _unhealthyStopping = Task.FromResult(HealthCheckResult.Unhealthy("Stopping")); 19private static readonly Task<HealthCheckResult> _unhealthyStopped = Task.FromResult(HealthCheckResult.Unhealthy("Stopped")); 44public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
CommonHealthChecksExtensions.Manual.cs (2)
44=> Throw.IfNull(manualHealthCheck).Result = HealthCheckResult.Healthy(); 53=> Throw.IfNull(manualHealthCheck).Result = HealthCheckResult.Unhealthy(Throw.IfNullOrWhitespace(reason));
IManualHealthCheck.cs (1)
16public HealthCheckResult Result { get; set; }
ManualHealthCheck.cs (3)
13private HealthCheckResult _result; 15public HealthCheckResult Result 38Result = HealthCheckResult.Unhealthy("Initial state");
ManualHealthCheckService.cs (1)
37public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) => Task.FromResult(_tracker.GetHealthCheckResult());
ManualHealthCheckTracker.cs (4)
13private static readonly HealthCheckResult _healthy = HealthCheckResult.Healthy(); 27public HealthCheckResult GetHealthCheckResult() 37var check = checkPair.Key.Result;
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
ManualHealthCheckTests.cs (4)
65var unhealthyCheck = HealthCheckResult.Unhealthy("Test reason"); 71var healthyCheck = HealthCheckResult.Healthy();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (58)
DefaultHealthCheckServiceTest.cs (29)
34.AddCheck("Foo", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 35.AddCheck("Foo", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 36.AddCheck("Bar", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 37.AddCheck("Baz", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))) 38.AddCheck("Baz", new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy()))); 74b.AddAsyncCheck("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data)), healthyCheckTags); 75b.AddAsyncCheck("DegradedCheck", _ => Task.FromResult(HealthCheckResult.Degraded(DegradedMessage)), degradedCheckTags); 76b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception)), unhealthyCheckTags); 177b.AddAsyncCheck("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data))); 178b.AddAsyncCheck("DegradedCheck", _ => Task.FromResult(HealthCheckResult.Degraded(DegradedMessage))); 179b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception))); 257return HealthCheckResult.Unhealthy(); 283b.AddAsyncCheck("Faults", ct => Task.FromException<HealthCheckResult>(faultedException)); 284b.AddAsyncCheck("Succeeds", ct => Task.FromResult(HealthCheckResult.Healthy())); 334return Task.FromResult(HealthCheckResult.Healthy()); 501return HealthCheckResult.Healthy(); 508return HealthCheckResult.Healthy(); 542return HealthCheckResult.Healthy(); 568return HealthCheckResult.Healthy(); 666public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 668return Task.FromResult(HealthCheckResult.Healthy()); 681public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 686return Task.FromResult(HealthCheckResult.Healthy()); 690return Task.FromResult(HealthCheckResult.Unhealthy("failed", e)); 698public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 704return Task.FromResult(HealthCheckResult.Healthy(data: data)); 710public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 734public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken) 736return Task.FromResult(HealthCheckResult.Healthy(data: new Dictionary<string, object> { { "self", this } }));
DependencyInjection\HealthChecksBuilderTest.cs (9)
23return Task.FromResult(HealthCheckResult.Healthy()); 117return HealthCheckResult.Healthy(); 140return HealthCheckResult.Degraded(); 163return Task.FromResult(HealthCheckResult.Healthy()); 186return Task.FromResult(HealthCheckResult.Unhealthy()); 208.AddAsyncCheck("Foo", () => Task.FromResult(HealthCheckResult.Healthy())); 211.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Healthy())); 233public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default) 251public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
HealthCheckPublisherHostedServiceTest.cs (20)
251instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 258instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 270instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 282instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 297return Task.FromResult(HealthCheckResult.Healthy(HealthyMessage)); 310instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 322instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 334instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 346instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 526instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 533instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 545instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 557instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 572return Task.FromResult(HealthCheckResult.Healthy(HealthyMessage)); 585instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 597instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 609instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 621instance: new DelegateHealthCheck(_ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage))), 749builder.AddCheck("one", () => { return HealthCheckResult.Healthy(); }) 750.AddCheck("two", () => { return HealthCheckResult.Healthy(); });
OrleansServiceDefaults (1)
Extensions.cs (1)
91.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
Playground.ServiceDefaults (1)
Extensions.cs (1)
88.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
Seq.ServiceDefaults (1)
Extensions.cs (1)
90.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
TestingAppHost1.ServiceDefaults (1)
Extensions.cs (1)
97.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
TestShop.ServiceDefaults (1)
Extensions.cs (1)
87.AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);