10 references to KnownRelationshipTypes
Aspire.Hosting (9)
ApplicationModel\CustomResourceSnapshot.cs (1)
428
relationships.Add(new(resourceWithParent.Parent.Name,
KnownRelationshipTypes
.Parent));
Orchestrator\ApplicationOrchestrator.cs (1)
441
: 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 (6)
1208
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1322
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
1395
builder.WithRelationship(dependency.Resource,
KnownRelationshipTypes
.WaitFor);
2069
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resource,
KnownRelationshipTypes
.Reference));
2145
return builder.WithAnnotation(new ResourceRelationshipAnnotation(resourceBuilder.Resource,
KnownRelationshipTypes
.Reference));
2205
return builder.WithRelationship(parent,
KnownRelationshipTypes
.Parent);
Aspire.Hosting.Tests (1)
WaitForTests.cs (1)
797
Assert.Equal(
KnownRelationshipTypes
.WaitFor, relationshipAnnotation.Type);