15 references to Resource
Aspire.Dashboard (15)
Components\Pages\Resources.razor.cs (3)
474
if (current.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName) is { Length: > 0 } value)
591
.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName) == r.Name))
621
return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName)));
Model\KnownPropertyLookup.cs (6)
25
new(KnownProperties.
Resource
.DisplayName, loc[nameof(ResourcesDetailsDisplayNameProperty)]),
26
new(KnownProperties.
Resource
.State, loc[nameof(ResourcesDetailsStateProperty)]),
27
new(KnownProperties.
Resource
.StartTime, loc[nameof(ResourcesDetailsStartTimeProperty)]),
28
new(KnownProperties.
Resource
.StopTime, loc[nameof(ResourcesDetailsStopTimeProperty)]),
29
new(KnownProperties.
Resource
.ExitCode, loc[nameof(ResourcesDetailsExitCodeProperty)]),
30
new(KnownProperties.
Resource
.HealthState, loc[nameof(ResourcesDetailsHealthStateProperty)])
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);
Model\ResourceSourceViewModel.cs (1)
35
if (resource.Properties.TryGetValue(KnownProperties.
Resource
.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModelExtensions.cs (3)
39
return resource.TryGetCustomDataInt(KnownProperties.
Resource
.ExitCode, out exitCode);
64
return resource.TryGetCustomDataStringArray(KnownProperties.
Resource
.AppArgs, out arguments);
69
return resource.TryGetCustomDataBoolArray(KnownProperties.
Resource
.AppArgsSensitivity, out argParams);