11 references to Resource
Aspire.Dashboard (11)
Components\Pages\Resources.razor.cs (2)
337
if (current.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName) is { Length: > 0 } value)
483
if (resource.Properties.TryGetValue(KnownProperties.
Resource
.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
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)
61
foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName) == resource.Name))
76
var parentName = gridViewModel.Resource.GetResourcePropertyValue(KnownProperties.
Resource
.ParentName);
Model\ResourceViewModelExtensions.cs (1)
39
return resource.TryGetCustomDataInt(KnownProperties.
Resource
.ExitCode, out exitCode);