8 writes to Properties
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
35Properties = CreatePropertyViewModels(resourceType, Properties, knownPropertyLookup, logger),
Aspire.Dashboard.Components.Tests (4)
Controls\ResourceDetailsTests.cs (1)
1002Properties = properties.ToImmutableDictionary(),
Layout\ResourcesLayoutTests.cs (1)
550Properties = System.Collections.Immutable.ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Pages\ResourcesTests.cs (1)
1081Properties = properties ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
49Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Playwright.Tests (2)
Integration\Playwright\ResourcePaneResponsiveTests.cs (1)
2838Properties = properties,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
49Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
49Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
43 references to Properties
Aspire.Dashboard (24)
Components\Controls\ParameterOverview.razor.cs (1)
97if (Resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Components\Controls\ResourceDetails.razor.cs (1)
147foreach (var property in _resource.Properties.Values)
Components\Legacy\Pages\Resources.razor.cs (1)
865if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Components\Pages\ResourceOverview.Details.cs (1)
84foreach (var property in resource.Properties.Values)
Components\Pages\Resources.razor.cs (1)
928if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Model\ResourceOutgoingPeerResolver.cs (3)
159var hasProperty1 = resource1.Properties.TryGetValue(propertyName, out var property1); 160var hasProperty2 = resource2.Properties.TryGetValue(propertyName, out var property2); 254else if (resource.Properties.ContainsKey(KnownProperties.Resource.ConnectionString))
Model\ResourceViewModel.cs (8)
59Properties.TryGetValue(KnownProperties.Resource.TraitPrefix + name, out var property) && property.Value.KindCase == Value.KindOneofCase.ListValue 66Properties.TryGetValue(KnownProperties.Resource.DisplayOrder, out var property) && 77Properties.TryGetValue(KnownProperties.Container.Lifetime, out var lifetime) && 106if (Properties.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) && 115if (Properties.TryGetValue(KnownProperties.Parameter.Value, out var parameterValueProperty) && 134if (Properties.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) && 146if (!Properties.TryGetValue(KnownProperties.Resource.ConnectionProperties, out var connectionPropertiesProperty) || 200if (Properties.TryGetValue(propertyName, out var value))
Model\ResourceViewModelExtensions.cs (6)
21foreach (var (key, property) in resource.Properties) 107return resource.Properties.ContainsKey(KnownProperties.Terminal.Enabled); 210if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToString(out var valueString)) 222if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 247if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 272if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToInt(out i))
Model\TelemetryExportService.cs (2)
765Properties = resource.Properties.Count > 0 766? resource.Properties.OrderBy(p => p.Key).ToDistinctDictionary(
Aspire.Dashboard.Components.Tests (7)
Pages\ResourcesTests.cs (3)
1344Assert.True(resource.Properties.ContainsKey(KnownProperties.Parameter.Value)); 1345Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue); 1346Assert.True(resource.Properties[KnownProperties.Parameter.Value].IsValueSensitive);
Pages\TerminalsTests.cs (1)
414properties: terminal.Properties.Where(p => p.Key == KnownProperties.Terminal.Enabled).ToDictionary());
Pages\TerminalWindowTests.cs (3)
161properties: TerminalSetupHelpers.CreateTerminalResource("shell-second", replicaIndex: 1, replicaCount: 2).Properties.ToDictionary(), 208properties: resource.Properties 376properties: resources[0].Properties.ToDictionary(), iconName: "Database", iconVariant: IconVariant.Regular);
Aspire.Dashboard.Tests (12)
Model\ResourceStateViewModelTests.cs (1)
95resource.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)
107Assert.Collection(vm.Properties, 158vm.Properties.OrderBy(p => p.Key), 212var property = vm.Properties[KnownProperties.Container.Image]; 254var property = vm.Properties[propertyName]; 289var property = vm.Properties[KnownProperties.Container.Image]; 339var image = vm.Properties[KnownProperties.Container.Image]; 345var id = vm.Properties[KnownProperties.Container.Id];
Model\SqliteResourceRepositoryTests.cs (4)
480Assert.Equal(nestedValue, actual.Properties["nested"].Value); 481Assert.True(actual.Properties["nested"].IsValueSensitive); 482Assert.Equal(16, actual.Properties["nested"].SortOrder); 1047Assert.Equal(expected, resource.Properties["property"].Value.StringValue);