1 interface inheriting from IResourceWithParent
Aspire.Hosting (1)
ApplicationModel\IResourceWithParentOfT.cs (1)
10
public interface IResourceWithParent<out T> :
IResourceWithParent
where T : IResource
5 implementations of IResourceWithParent
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (1)
1292
private sealed class CustomChildResource(string name, IResource parent) : Resource(name),
IResourceWithParent
Orchestrator\ApplicationOrchestratorTests.cs (2)
457
private sealed class CustomChildResource(string name, IResource parent) : Resource(name),
IResourceWithParent
505
: ResourceWithConnectionString(name),
IResourceWithParent
Orchestrator\RelationshipEvaluatorTests.cs (1)
48
private sealed class CustomChildResource(string name, IResource parent) : Resource(name),
IResourceWithParent
Stress.AppHost (1)
TestResource.cs (1)
104
sealed class TestNestedResource(string name, IResource parent) : Resource(name),
IResourceWithParent
18 references to IResourceWithParent
Aspire.Hosting (13)
ApplicationModel\CustomResourceSnapshot.cs (1)
410
if (resource is
IResourceWithParent
resourceWithParent)
ApplicationModel\IResourceWithParentOfT.cs (1)
17
IResource
IResourceWithParent
.Parent => Parent;
ApplicationModel\ResourceExtensions.cs (5)
79
if (resource is
IResourceWithParent
)
91
if (resource is
IResourceWithParent
child)
116
if (resource is
IResourceWithParent
)
125
if (resource is
IResourceWithParent
child)
679
IResourceWithParent
resWithParent => resWithParent.Parent.GetRootResource(),
Orchestrator\ApplicationOrchestrator.cs (2)
415
var parent = resource is
IResourceWithParent
hasParent
462
foreach (var child in children.OfType<IResourceWithConnectionString>().Where(c => c is
IResourceWithParent
))
Orchestrator\RelationshipEvaluator.cs (1)
17
return model.Resources.OfType<
IResourceWithParent
>()
ResourceBuilderExtensions.cs (3)
1101
if (builder.Resource is
IResourceWithParent
resourceWithParent && resourceWithParent.Parent == dependency.Resource)
1106
if (dependency.Resource is
IResourceWithParent
dependencyResourceWithParent)
1197
if (builder.Resource is
IResourceWithParent
resourceWithParent && resourceWithParent.Parent == dependency.Resource)
Aspire.Hosting.Azure (5)
Provisioning\Provisioners\AzureProvisioner.cs (5)
29
private ILookup<IResource,
IResourceWithParent
>? _parentChildLookup;
46
_parentChildLookup = appModel.Resources.OfType<
IResourceWithParent
>().ToLookup(r => r.Parent);
68
var
child = childResources[i];
71
foreach (
var
grandChild in _parentChildLookup[child])
284
foreach (var child in children.OfType<IResourceWithConnectionString>().Where(c => c is
IResourceWithParent
))