5 writes to Properties
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
35
Properties
= CreatePropertyViewModels(resourceType, Properties, knownPropertyLookup, logger),
Aspire.Dashboard.Components.Tests (3)
Controls\ResourceDetailsTests.cs (1)
936
Properties
= properties.ToImmutableDictionary(),
Pages\ResourcesTests.cs (1)
733
Properties
= properties ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
45
Properties
= properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
45
Properties
= properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
33 references to Properties
Aspire.Dashboard (18)
Components\Controls\ResourceDetails.razor.cs (1)
151
foreach (var property in _resource.
Properties
.Values)
Components\Pages\Resources.razor.cs (1)
775
if (resource.
Properties
.TryGetValue(KnownProperties.Parameter.Value, out var property))
Model\ResourceOutgoingPeerResolver.cs (3)
159
var hasProperty1 = resource1.
Properties
.TryGetValue(propertyName, out var property1);
160
var hasProperty2 = resource2.
Properties
.TryGetValue(propertyName, out var property2);
254
else if (resource.
Properties
.ContainsKey(KnownProperties.Resource.ConnectionString))
Model\ResourceViewModel.cs (5)
79
if (
Properties
.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) &&
88
if (
Properties
.TryGetValue(KnownProperties.Parameter.Value, out var parameterValueProperty) &&
107
if (
Properties
.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) &&
119
if (!
Properties
.TryGetValue(KnownProperties.Resource.ConnectionProperties, out var connectionPropertiesProperty) ||
172
if (
Properties
.TryGetValue(propertyName, out var value))
Model\ResourceViewModelExtensions.cs (6)
22
foreach (var (key, property) in resource.
Properties
)
108
return resource.
Properties
.ContainsKey(KnownProperties.Terminal.Enabled);
234
if (resource.
Properties
.TryGetValue(key, out var property) && property.Value.TryConvertToString(out var valueString))
246
if (resource.
Properties
.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value })
271
if (resource.
Properties
.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value })
296
if (resource.
Properties
.TryGetValue(key, out var property) && property.Value.TryConvertToInt(out i))
Model\TelemetryExportService.cs (2)
762
Properties = resource.
Properties
.Count > 0
763
? resource.
Properties
.OrderBy(p => p.Key).ToDistinctDictionary(
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (3)
996
Assert.True(resource.
Properties
.ContainsKey(KnownProperties.Parameter.Value));
997
Assert.Equal("my-secret-value", resource.
Properties
[KnownProperties.Parameter.Value].Value.StringValue);
998
Assert.True(resource.
Properties
[KnownProperties.Parameter.Value].IsValueSensitive);
Aspire.Dashboard.Tests (12)
Model\ResourceStateViewModelTests.cs (1)
95
resource.
Properties
.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0, displayName: null, isHighlighted: false));
Model\ResourceViewModelTests.cs (7)
82
Assert.Collection(vm.
Properties
,
133
vm.
Properties
.OrderBy(p => p.Key),
187
var property = vm.
Properties
[KnownProperties.Container.Image];
229
var property = vm.
Properties
[propertyName];
264
var property = vm.
Properties
[KnownProperties.Container.Image];
314
var image = vm.
Properties
[KnownProperties.Container.Image];
320
var id = vm.
Properties
[KnownProperties.Container.Id];
Model\SqliteResourceRepositoryTests.cs (4)
439
Assert.Equal(nestedValue, actual.
Properties
["nested"].Value);
440
Assert.True(actual.
Properties
["nested"].IsValueSensitive);
441
Assert.Equal(14, actual.
Properties
["nested"].SortOrder);
982
Assert.Equal(expected, resource.
Properties
["property"].Value.StringValue);