9 references to HealthCheckAnnotation
Aspire.Hosting (7)
ApplicationModel\ResourceNotificationService.cs (2)
156
if (dependency.TryGetAnnotationsOfType<
HealthCheckAnnotation
>(out var _))
179
/// without <see cref="
HealthCheckAnnotation
"/> annotations will be considered healthy.
Dcp\ApplicationExecutor.cs (1)
242
if (!resource.TryGetAnnotationsIncludingAncestorsOfType<
HealthCheckAnnotation
>(out var annotations))
DistributedApplicationBuilder.cs (1)
328
r => r.Annotations.OfType<
HealthCheckAnnotation
>().Select(hca => new { Resource = r, Annotation = hca })
Health\ResourceHealthCheckService.cs (1)
48
if (!resource.TryGetAnnotationsIncludingAncestorsOfType<
HealthCheckAnnotation
>(out var annotations))
ResourceBuilderExtensions.cs (2)
761
/// Adds a <see cref="
HealthCheckAnnotation
"/> to the resource annotations to associate a resource with a named health check managed by the health check service.
801
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");