10 references to TryGetAnnotationsIncludingAncestorsOfType
Aspire.Hosting (3)
Health\ResourceHealthCheckService.cs (1)
120
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Orchestrator\ApplicationOrchestrator.cs (1)
746
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Pipelines\DistributedApplicationPipeline.cs (1)
261
if (resource.
TryGetAnnotationsIncludingAncestorsOfType
<ContainerRegistryReferenceAnnotation>(out var annotations) &&
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (7)
80
Assert.True(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
91
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
103
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
118
Assert.False(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
132
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
147
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
165
Assert.True(grandchild.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));