8 references to KnownRelationshipTypes
Aspire.Hosting (8)
ApplicationModel\CustomResourceSnapshot.cs (1)
412
relationships.Add(new(resourceWithParent.Parent.Name,
KnownRelationshipTypes
.Parent));
Orchestrator\ApplicationOrchestrator.cs (1)
417
: resource.Annotations.OfType<ResourceRelationshipAnnotation>().LastOrDefault(r => r.Type ==
KnownRelationshipTypes
.Parent)?.Resource;
Orchestrator\RelationshipEvaluator.cs (1)
29
relations.LastOrDefault(r => r.Type ==
KnownRelationshipTypes
.Parent) is { } parentRelationship)
ResourceBuilderExtensions.cs (5)
1129
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1202
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1876
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource,
KnownRelationshipTypes
.Reference));
1952
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource,
KnownRelationshipTypes
.Reference));
2012
return builder.WithRelationship(parent,
KnownRelationshipTypes
.Parent);