8 references to ResourceRelationshipAnnotation
Aspire.Hosting (6)
ApplicationModel\CustomResourceSnapshot.cs (2)
392foreach (var annotation in resource.Annotations.OfType<ResourceRelationshipAnnotation>())
Orchestrator\RelationshipEvaluator.cs (1)
28if (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)
794Assert.True(containerResource.Resource.TryGetAnnotationsOfType<ResourceRelationshipAnnotation>(out var relationshipAnnotations)); 795var relationshipAnnotation = Assert.Single(relationshipAnnotations);