10 references to GetResourcePropertyValue
Aspire.Dashboard (10)
Components\Layout\ResourcesLayout.razor.cs (2)
1160
var parentName = resource.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName);
1255
.Where(r => _resourceByName.Values.Any(nested => string.Equals(nested.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName), r.Name, StringComparisons.ResourceName)))
Components\Legacy\Pages\Resources.razor.cs (3)
745
if (current.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName) is { Length: > 0 } value)
872
.Where(r => _resourceByName.Values.Any(nested => nested.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName) == r.Name))
910
return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName)));
Components\Pages\Resources.razor.cs (3)
784
if (current.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName) is { Length: > 0 } value)
911
.Where(r => _resourceByName.Values.Any(nested => nested.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName) == r.Name))
949
return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName)));
Model\ResourceGridViewModel.cs (2)
60
foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName) == resource.Name))
75
var parentName = gridViewModel.Resource.
GetResourcePropertyValue
(KnownProperties.Resource.ParentName);