6 writes to Properties
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
34Properties = CreatePropertyViewModels(resourceType, Properties, knownPropertyLookup, logger),
Aspire.Dashboard.Components.Tests (3)
Controls\ResourceDetailsTests.cs (1)
1004Properties = properties.ToImmutableDictionary(),
Pages\ResourcesTests.cs (1)
1003Properties = properties ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
45Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
45Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
45Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
44 references to Properties
Aspire.Dashboard (24)
Components\Controls\ApplicationSummary.razor.cs (1)
700if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Components\Controls\ParameterOverview.razor.cs (1)
94if (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)
839if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Components\Pages\ResourceOverview.Details.cs (1)
72foreach (var property in resource.Properties.Values)
Components\Pages\Resources.razor.cs (1)
878if (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 (7)
54Properties.TryGetValue(KnownProperties.Resource.TraitPrefix + name, out var property) && property.Value.KindCase == Value.KindOneofCase.ListValue 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) || 199if (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)
764Properties = resource.Properties.Count > 0 765? resource.Properties.OrderBy(p => p.Key).ToDistinctDictionary(
Aspire.Dashboard.Components.Tests (7)
Pages\ResourcesTests.cs (3)
1266Assert.True(resource.Properties.ContainsKey(KnownProperties.Parameter.Value)); 1267Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue); 1268Assert.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)
137properties: TerminalSetupHelpers.CreateTerminalResource("shell-second", replicaIndex: 1, replicaCount: 2).Properties.ToDictionary(), 184properties: resource.Properties 329properties: resources[0].Properties.ToDictionary(), iconName: "Database", iconVariant: IconVariant.Regular);
Aspire.Dashboard.Tests (13)
Model\ResourceOrderStoreTests.cs (1)
37cache.Properties[name].Value.ListValue.Values[0].StringValue = "30";
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)
82Assert.Collection(vm.Properties, 133vm.Properties.OrderBy(p => p.Key), 187var property = vm.Properties[KnownProperties.Container.Image]; 229var property = vm.Properties[propertyName]; 264var property = vm.Properties[KnownProperties.Container.Image]; 314var image = vm.Properties[KnownProperties.Container.Image]; 320var id = vm.Properties[KnownProperties.Container.Id];
Model\SqliteResourceRepositoryTests.cs (4)
479Assert.Equal(nestedValue, actual.Properties["nested"].Value); 480Assert.True(actual.Properties["nested"].IsValueSensitive); 481Assert.Equal(14, actual.Properties["nested"].SortOrder); 1046Assert.Equal(expected, resource.Properties["property"].Value.StringValue);