8 references to ResourceRelationshipAnnotation
Aspire.Hosting (6)
ApplicationModel\CustomResourceSnapshot.cs (2)
392
foreach (
var
annotation in resource.Annotations.OfType<
ResourceRelationshipAnnotation
>())
Orchestrator\RelationshipEvaluator.cs (1)
28
if (resource.TryGetAnnotationsOfType<
ResourceRelationshipAnnotation
>(out var relations) &&
ResourceBuilderExtensions.cs (3)
1143
/// Adds a <see cref="
ResourceRelationshipAnnotation
"/> to the resource annotations to add a relationship.
1178
/// Adds a <see cref="
ResourceRelationshipAnnotation
"/> to the resource annotations to add a parent-child relationship.
1208
/// Adds a <see cref="
ResourceRelationshipAnnotation
"/> to the resource annotations to add a parent-child relationship.
Aspire.Hosting.Tests (2)
WaitForTests.cs (2)
794
Assert.True(containerResource.Resource.TryGetAnnotationsOfType<
ResourceRelationshipAnnotation
>(out var relationshipAnnotations));
795
var
relationshipAnnotation = Assert.Single(relationshipAnnotations);