4 writes to Properties
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
32
Properties
= CreatePropertyViewModels(Properties, knownPropertyLookup, logger),
Aspire.Dashboard.Components.Tests (2)
Pages\ResourcesTests.cs (1)
376
Properties
= ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
39
Properties
= properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
39
Properties
= properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
10 references to Properties
Aspire.Dashboard (7)
Components\Controls\ResourceDetails.razor.cs (1)
121
_displayedResourcePropertyViewModels.AddRange(_resource.
Properties
.Select(p => new DisplayedResourcePropertyViewModel(p.Value, Loc, TimeProvider)));
Model\ResourceSourceViewModel.cs (1)
35
if (resource.
Properties
.TryGetValue(KnownProperties.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModel.cs (1)
74
if (
Properties
.TryGetValue(propertyName, out var value))
Model\ResourceViewModelExtensions.cs (4)
74
if (resource.
Properties
.TryGetValue(key, out var property) && property.Value.TryConvertToString(out var valueString))
86
if (resource.
Properties
.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value })
111
if (resource.
Properties
.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value })
136
if (resource.
Properties
.TryGetValue(key, out var property) && property.Value.TryConvertToInt(out i))
Aspire.Dashboard.Tests (3)
Model\ResourceStateViewModelTests.cs (1)
88
resource.
Properties
.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0));
Model\ResourceViewModelTests.cs (2)
81
Assert.Collection(vm.
Properties
,
132
viewModel.
Properties
.OrderBy(p => p.Key),