1 interface inheriting from IResourceWithParent
Aspire.Hosting (1)
ApplicationModel\IResourceWithParentOfT.cs (1)
10
public interface IResourceWithParent<out T> :
IResourceWithParent
where T : IResource
14 references to IResourceWithParent
Aspire.Hosting (5)
ApplicationModel\IResourceWithParentOfT.cs (1)
17
IResource
IResourceWithParent
.Parent => Parent;
Dcp\ApplicationExecutor.cs (4)
92
private readonly ILookup<IResource?,
IResourceWithParent
> _parentChildLookup = GetParentChildLookup(model);
189
private static ILookup<IResource?,
IResourceWithParent
> GetParentChildLookup(DistributedApplicationModel model)
193
IResourceWithParent
rp => SelectParentContainerResource(rp.Parent),
199
return model.Resources.OfType<
IResourceWithParent
>()
Aspire.Hosting.AWS (6)
AWSLifecycleHook.cs (5)
30
var parentChildLookup = appModel.Resources.OfType<
IResourceWithParent
>()
43
private static void SynthesizeAWSCDKResources(IList<IAWSResource> awsResources, ILookup<IAWSResource?,
IResourceWithParent
> parentChildLookup)
89
private async Task ProvisionAWSResourcesAsync(IList<IAWSResource> awsResources, ILookup<IAWSResource?,
IResourceWithParent
> parentChildLookup, CancellationToken cancellationToken)
167
private async Task UpdateStateAsync(IAWSResource resource, ILookup<IAWSResource?,
IResourceWithParent
> parentChildLookup, Func<CustomResourceSnapshot, CustomResourceSnapshot> stateFactory)
171
foreach (
var
child in parentChildLookup[resource])
Utils\ResourceExtensions.cs (1)
21
IResourceWithParent
rp => TrySelectParentResource<T>(rp.Parent),
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\AzureProvisioner.cs (3)
88
IResourceWithParent
rp => SelectParentResource(rp.Parent),
93
var parentChildLookup = appModel.Resources.OfType<
IResourceWithParent
>().ToLookup(r => r.Parent);
111
foreach (
var
child in childResources)