10 references to TryGetAnnotationsIncludingAncestorsOfType
Aspire.Hosting (3)
Health\ResourceHealthCheckService.cs (1)
108
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Orchestrator\ApplicationOrchestrator.cs (1)
653
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Pipelines\DistributedApplicationPipeline.cs (1)
201
if (resource.
TryGetAnnotationsIncludingAncestorsOfType
<ContainerRegistryReferenceAnnotation>(out var annotations) &&
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (7)
57
Assert.True(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
68
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
80
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
95
Assert.False(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
109
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
124
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
142
Assert.True(grandchild.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));