1 interface inheriting from IResourceWithParent
Aspire.Hosting (1)
ApplicationModel\IResourceWithParentOfT.cs (1)
10public interface IResourceWithParent<out T> : IResourceWithParent where T : IResource
18 references to IResourceWithParent
Aspire.Hosting (12)
ApplicationModel\CustomResourceSnapshot.cs (1)
387if (resource is IResourceWithParent resourceWithParent)
ApplicationModel\IResourceWithParentOfT.cs (1)
17IResource IResourceWithParent.Parent => Parent;
ApplicationModel\ResourceExtensions.cs (5)
79if (resource is IResourceWithParent) 91if (resource is IResourceWithParent child) 116if (resource is IResourceWithParent) 125if (resource is IResourceWithParent child) 596IResourceWithParent resWithParent => resWithParent.Parent.GetRootResource(),
Orchestrator\ApplicationOrchestrator.cs (1)
355foreach (var child in children.OfType<IResourceWithConnectionString>().Where(c => c is IResourceWithParent))
Orchestrator\RelationshipEvaluator.cs (1)
17return model.Resources.OfType<IResourceWithParent>()
ResourceBuilderExtensions.cs (3)
785if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.Parent == dependency.Resource) 790if (dependency.Resource is IResourceWithParent dependencyResourceWithParent) 881if (builder.Resource is IResourceWithParent resourceWithParent && resourceWithParent.Parent == dependency.Resource)
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (2)
76private ILookup<IResource, IResourceWithParent>? _parentChildLookup; 103_parentChildLookup = appModel.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (1)
1260private sealed class CustomChildResource(string name, IResource parent) : Resource(name), IResourceWithParent
Orchestrator\ApplicationOrchestratorTests.cs (1)
286private sealed class CustomChildResource(string name, IResource parent) : Resource(name), IResourceWithParent
Orchestrator\RelationshipEvaluatorTests.cs (1)
48private 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