27 references to ParentName
Aspire.Dashboard (11)
Components\Layout\ResourcesLayout.razor.cs (3)
1662var parentName = resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName); 1790if (resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } parentName) 1941var parentName = resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Components\Legacy\Pages\Resources.razor.cs (3)
752if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 879.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == r.Name)) 917return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Components\Pages\Resources.razor.cs (3)
791if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 918.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == r.Name)) 956return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Model\ResourceGridViewModel.cs (2)
60foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == resource.Name)) 75var parentName = gridViewModel.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Aspire.Dashboard.Components.Tests (12)
Layout\ResourcesLayoutTests.cs (10)
1184[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1188[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1219[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1594[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("postgres"), false, null, 0, null, false), 1635[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString(parent), false, null, 0, null, false)
Pages\ResourcesTests.cs (2)
199.Add(KnownProperties.Resource.ParentName, new ResourcePropertyViewModel( 200KnownProperties.Resource.ParentName,
Aspire.Dashboard.Playwright.Tests (4)
Integration\Playwright\ResourcePaneResponsiveTests.cs (4)
2663[KnownProperties.Resource.ParentName] = 2664new(KnownProperties.Resource.ParentName, Value.ForString(index % 2 == 0 ? "api" : "cache"), false, null, 0, null, false) 2715properties = properties.Add(KnownProperties.Resource.ParentName, 2716new(KnownProperties.Resource.ParentName, Value.ForString(name == "frontend" ? "queue" : "cache"), false, null, 0, null, false));