8 references to HealthCheckAnnotation
Aspire.Hosting (6)
Health\ResourceHealthCheckScheduler.cs (2)
58
if (resource.TryGetAnnotationsOfType<
HealthCheckAnnotation
>(out var annotations))
60
foreach (
var
annotation in annotations)
Health\ResourceNotificationHealthCheckPublisher.cs (1)
15
if (resource.TryGetAnnotationsOfType<
HealthCheckAnnotation
>(out var annotations))
ResourceBuilderExtensions.cs (3)
635
if (dependency.Resource.TryGetAnnotationsOfType<
HealthCheckAnnotation
>(out var _))
727
/// Adds a <see cref="
HealthCheckAnnotation
"/> to the resource annotations to associate a resource with a named health check managed by the health check service.
764
if (builder.Resource.TryGetAnnotationsOfType<
HealthCheckAnnotation
>(out var annotations) && annotations.Any(a => a.Key == key))
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
22
Assert.Single(redis.Resource.Annotations, a => a is
HealthCheckAnnotation
hca && hca.Key == "postgres_check");
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
20
Assert.Single(redis.Resource.Annotations, a => a is
HealthCheckAnnotation
hca && hca.Key == "redis_check");