1 write to Value
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
449Value = value;
28 references to Value
Aspire.Dashboard (22)
Components\Controls\ResourceDetails.razor.cs (1)
164value: property.Value,
Components\Pages\Resources.razor.cs (2)
778var value = isUnresolved ? null : (property.Value.HasStringValue ? property.Value.StringValue : null);
Model\ResourceOutgoingPeerResolver.cs (2)
175return property1!.Value.Equals(property2!.Value);
Model\ResourceViewModel.cs (11)
80connectionStringProperty.Value.TryConvertToString(out var connectionString) && 89parameterValueProperty.Value.TryConvertToString(out var parameterValue) && 108connectionStringProperty.Value.TryConvertToString(out var connectionString) && 120connectionPropertiesProperty.Value.StructValue is not { } connectionProperties) 174if (value.Value.TryConvertToString(out var s)) 372public Value Value => _propertyViewModel.Value; 393_tooltip = new(() => propertyViewModel.Value.HasStringValue ? propertyViewModel.Value.StringValue : propertyViewModel.Value.ToString()); 397var value = propertyViewModel.Value is { HasStringValue: true, StringValue: var stringValue } 401: propertyViewModel.Value.ToString();
Model\ResourceViewModelExtensions.cs (5)
24if (property.Value.TryConvertToString(out var stringValue)) 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 (1)
765p => ConvertPropertyValueToJsonNode(p.Value.Value))
Aspire.Dashboard.Components.Tests (1)
Pages\ResourcesTests.cs (1)
997Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue);
Aspire.Dashboard.Tests (5)
Model\ResourceViewModelTests.cs (3)
89Assert.Equal("two!", vm.Value.StringValue); 138Assert.Equal("Value1", p.Value.Value.StringValue); 150Assert.Equal("Value2", p.Value.Value.StringValue);
Model\SqliteResourceRepositoryTests.cs (2)
439Assert.Equal(nestedValue, actual.Properties["nested"].Value); 982Assert.Equal(expected, resource.Properties["property"].Value.StringValue);