11 references to KnownRelationshipTypes
Aspire.Hosting (10)
ApplicationModel\CustomResourceSnapshot.cs (1)
434
relationships.Add(new(resourceWithParent.Parent.Name,
KnownRelationshipTypes
.Parent));
Orchestrator\ApplicationOrchestrator.cs (1)
540
: 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 (7)
1469
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1583
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1656
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
2605
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource,
KnownRelationshipTypes
.Reference));
2681
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource,
KnownRelationshipTypes
.Reference));
2741
return builder.WithRelationship(parent,
KnownRelationshipTypes
.Parent);
2772
child.WithRelationship(builder.Resource,
KnownRelationshipTypes
.Parent);
Aspire.Hosting.Tests (1)
WaitForTests.cs (1)
798
Assert.Equal(
KnownRelationshipTypes
.WaitFor, relationshipAnnotation.Type);