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