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