8 references to KnownRelationshipTypes
Aspire.Hosting (8)
ApplicationModel\CustomResourceSnapshot.cs (1)
407
relationships.Add(new(resourceWithParent.Parent.Name,
KnownRelationshipTypes
.Parent));
Orchestrator\ApplicationOrchestrator.cs (1)
395
: 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)
1099
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1172
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1846
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource,
KnownRelationshipTypes
.Reference));
1922
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource,
KnownRelationshipTypes
.Reference));
1982
return builder.WithRelationship(parent,
KnownRelationshipTypes
.Parent);