9 references to TryGetAnnotationsIncludingAncestorsOfType
Aspire.Hosting (2)
Health\ResourceHealthCheckService.cs (1)
108
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Orchestrator\ApplicationOrchestrator.cs (1)
505
if (!resource.
TryGetAnnotationsIncludingAncestorsOfType
<HealthCheckAnnotation>(out var annotations))
Aspire.Hosting.Tests (7)
ResourceExtensionsTests.cs (7)
56
Assert.True(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
67
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
79
Assert.False(parent.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
94
Assert.False(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
108
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
123
Assert.True(child.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));
141
Assert.True(grandchild.Resource.
TryGetAnnotationsIncludingAncestorsOfType
<DummyAnnotation>(out var annotations));