1 interface inheriting from IResourceWithParent
Aspire.Hosting (1)
ApplicationModel\IResourceWithParentOfT.cs (1)
10
public interface IResourceWithParent<out T> :
IResourceWithParent
where T : IResource
19 references to IResourceWithParent
Aspire.Hosting (14)
ApplicationModel\CustomResourceSnapshot.cs (1)
335
if (resource is
IResourceWithParent
resourceWithParent)
ApplicationModel\IResourceWithParentOfT.cs (1)
17
IResource
IResourceWithParent
.Parent => Parent;
ApplicationModel\ResourceExtensions.cs (5)
77
if (resource is
IResourceWithParent
)
89
if (resource is
IResourceWithParent
child)
114
if (resource is
IResourceWithParent
)
123
if (resource is
IResourceWithParent
child)
345
IResourceWithParent
resWithParent => resWithParent.Parent.GetRootResource(),
Dcp\ApplicationExecutor.cs (4)
99
private readonly ILookup<IResource?,
IResourceWithParent
> _parentChildLookup = GetParentChildLookup(model);
195
private static ILookup<IResource?,
IResourceWithParent
> GetParentChildLookup(DistributedApplicationModel model)
199
IResourceWithParent
rp => SelectParentContainerResource(rp.Parent),
205
return model.Resources.OfType<
IResourceWithParent
>()
ResourceBuilderExtensions.cs (3)
695
if (builder.Resource is
IResourceWithParent
resourceWithParent && resourceWithParent.Parent == dependency.Resource)
700
if (dependency.Resource is
IResourceWithParent
dependencyResourceWithParent)
750
if (builder.Resource is
IResourceWithParent
resourceWithParent && resourceWithParent.Parent == dependency.Resource)
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\AzureProvisioner.cs (3)
76
private ILookup<IResource,
IResourceWithParent
>? _parentChildLookup;
105
IResourceWithParent
rp => SelectParentResource(rp.Parent),
110
_parentChildLookup = appModel.Resources.OfType<
IResourceWithParent
>().ToLookup(r => r.Parent);
Aspire.Hosting.Tests (1)
Dcp\ApplicationExecutorTests.cs (1)
1100
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