5 writes to Properties
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
35Properties = CreatePropertyViewModels(resourceType, Properties, knownPropertyLookup, logger),
Aspire.Dashboard.Components.Tests (3)
Controls\ResourceDetailsTests.cs (1)
936Properties = properties.ToImmutableDictionary(),
Pages\ResourcesTests.cs (1)
733Properties = properties ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
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,
33 references to Properties
Aspire.Dashboard (18)
Components\Controls\ResourceDetails.razor.cs (1)
151foreach (var property in _resource.Properties.Values)
Components\Pages\Resources.razor.cs (1)
775if (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 (5)
79if (Properties.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) && 88if (Properties.TryGetValue(KnownProperties.Parameter.Value, out var parameterValueProperty) && 107if (Properties.TryGetValue(KnownProperties.Resource.ConnectionString, out var connectionStringProperty) && 119if (!Properties.TryGetValue(KnownProperties.Resource.ConnectionProperties, out var connectionPropertiesProperty) || 172if (Properties.TryGetValue(propertyName, out var value))
Model\ResourceViewModelExtensions.cs (6)
22foreach (var (key, property) in resource.Properties) 108return resource.Properties.ContainsKey(KnownProperties.Terminal.Enabled); 234if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToString(out var valueString)) 246if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 271if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 296if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToInt(out i))
Model\TelemetryExportService.cs (2)
762Properties = resource.Properties.Count > 0 763? resource.Properties.OrderBy(p => p.Key).ToDistinctDictionary(
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (3)
996Assert.True(resource.Properties.ContainsKey(KnownProperties.Parameter.Value)); 997Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue); 998Assert.True(resource.Properties[KnownProperties.Parameter.Value].IsValueSensitive);
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)
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)
439Assert.Equal(nestedValue, actual.Properties["nested"].Value); 440Assert.True(actual.Properties["nested"].IsValueSensitive); 441Assert.Equal(14, actual.Properties["nested"].SortOrder); 982Assert.Equal(expected, resource.Properties["property"].Value.StringValue);