10 references to TryGetAnnotationsIncludingAncestorsOfType
Aspire.Hosting (3)
Health\ResourceHealthCheckService.cs (1)
108
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Orchestrator\ApplicationOrchestrator.cs (1)
563
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Pipelines\DistributedApplicationPipeline.cs (1)
181
if (resource.
TryGetAnnotationsIncludingAncestorsOfType
<ContainerRegistryReferenceAnnotation>(out var annotations) &&
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (7)
58
Assert.True(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
69
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
81
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
96
Assert.False(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
110
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
125
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
143
Assert.True(grandchild.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));