1 implementation of Parent
Aspire.Hosting (1)
ApplicationModel\IResourceWithParentOfT.cs (1)
17
IResource IResourceWithParent.
Parent
=> Parent;
10 references to Parent
Aspire.Hosting (8)
ApplicationModel\CustomResourceSnapshot.cs (1)
337
relationships.Add(new(resourceWithParent.
Parent
.Name, KnownRelationshipTypes.Parent));
ApplicationModel\ResourceExtensions.cs (3)
91
resource = child.
Parent
;
125
resource = child.
Parent
;
345
IResourceWithParent resWithParent => resWithParent.
Parent
.GetRootResource(),
Dcp\ApplicationExecutor.cs (1)
199
IResourceWithParent rp => SelectParentContainerResource(rp.
Parent
),
ResourceBuilderExtensions.cs (3)
695
if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.
Parent
== dependency.Resource)
705
var parentBuilder = builder.ApplicationBuilder.CreateResourceBuilder(dependencyResourceWithParent.
Parent
);
750
if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.
Parent
== dependency.Resource)
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (2)
105
IResourceWithParent rp => SelectParentResource(rp.
Parent
),
110
_parentChildLookup = appModel.Resources.OfType<IResourceWithParent>().ToLookup(r => r.
Parent
);