4 writes to State
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
37
State
= HasState ? State : null,
Aspire.Dashboard.Components.Tests (2)
Pages\ResourcesTests.cs (1)
361
State
= state,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
40
State
= state?.ToString(),
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
40
State
= state?.ToString(),
11 references to State
Aspire.Dashboard (11)
Components\Pages\ConsoleLogs.razor.cs (1)
455
return $"{resourceName} ({resource.
State
})";
Components\Pages\Resources.razor.cs (5)
118
&& IsKeyValueTrue(resource.
State
?? string.Empty, PageViewModel.ResourceStatesToVisibility)
157
private readonly GridSort<ResourceGridViewModel> _stateSort = GridSort<ResourceGridViewModel>.ByAscending(p => p.Resource.
State
).ThenAscending(p => p.Resource, ResourceViewModelNameComparer.Instance);
312
PageViewModel.ResourceStatesToVisibility.AddOrUpdate(resource.
State
?? string.Empty, stateVisible(resource.
State
?? string.Empty), (_, _) => stateVisible(resource.
State
?? string.Empty));
Extensions\ResourceViewModelExtensions.cs (1)
52
public static bool HasNoState(this ResourceViewModel resource) => string.IsNullOrEmpty(resource.
State
);
Model\ResourceGraph\ResourceGraphMapper.cs (1)
61
Tooltip = stateIcon.Text ?? r.
State
Model\ResourceStateViewModel.cs (3)
146
{
State
: null or "" } => loc[Columns.UnknownStateLabel],
147
{ KnownState: KnownResourceState.Running, HealthStatus: not HealthStatus.Healthy } => $"{resource.
State
.Humanize()} ({(resource.HealthStatus ?? HealthStatus.Unhealthy).Humanize()})",
148
_ => resource.
State
.Humanize()