1 write to Value
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
497Value = value;
43 references to Value
Aspire.Dashboard (36)
Components\Controls\ApplicationSummary.razor.cs (2)
702var value = isUnresolved ? null : property.Value.HasStringValue ? property.Value.StringValue : null;
Components\Controls\ParameterOverview.razor.cs (2)
97if (!IsUnresolved && property.Value.HasStringValue) 99ParameterValue = property.Value.StringValue;
Components\Controls\ResourceDetails.razor.cs (1)
160value: property.Value,
Components\Legacy\Pages\Resources.razor.cs (2)
842var value = isUnresolved ? null : (property.Value.HasStringValue ? property.Value.StringValue : null);
Components\Pages\ResourceOverview.Details.cs (2)
74if (s_statusCardPropertyNames.Contains(property.Name) || !HasValue(property.Value)) 89value: property.Value,
Components\Pages\Resources.razor.cs (2)
881var value = isUnresolved ? null : (property.Value.HasStringValue ? property.Value.StringValue : null);
Model\ResourceOutgoingPeerResolver.cs (2)
175return property1!.Value.Equals(property2!.Value);
Model\ResourceViewModel.cs (17)
54Properties.TryGetValue(KnownProperties.Resource.TraitPrefix + name, out var property) && property.Value.KindCase == Value.KindOneofCase.ListValue 55? property.Value.ListValue.Values.Where(v => v.HasStringValue).Select(v => v.StringValue).ToArray() 78lifetime.Value.HasStringValue && 79string.Equals(lifetime.Value.StringValue, "Persistent", StringComparison.Ordinal); 107connectionStringProperty.Value.TryConvertToString(out var connectionString) && 116parameterValueProperty.Value.TryConvertToString(out var parameterValue) && 135connectionStringProperty.Value.TryConvertToString(out var connectionString) && 147connectionPropertiesProperty.Value.StructValue is not { } connectionProperties) 201if (value.Value.TryConvertToString(out var s)) 399public Value Value => _propertyViewModel.Value; 429_tooltip = new(() => propertyViewModel.Value.HasStringValue ? propertyViewModel.Value.StringValue : GetTraitText(propertyViewModel) ?? propertyViewModel.Value.ToString()); 433var value = propertyViewModel.Value is { HasStringValue: true, StringValue: var stringValue } 439: propertyViewModel.Value.ToString(); 467propertyViewModel.IsTrait && propertyViewModel.Value.KindCase == Value.KindOneofCase.ListValue 468? string.Join(", ", propertyViewModel.Value.ListValue.Values.Where(v => v.HasStringValue).Select(v => v.StringValue))
Model\ResourceViewModelExtensions.cs (5)
23if (property.Value.TryConvertToString(out var stringValue)) 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 (1)
767p => ConvertPropertyValueToJsonNode(p.Value.Value))
Aspire.Dashboard.Components.Tests (1)
Pages\ResourcesTests.cs (1)
1267Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue);
Aspire.Dashboard.Tests (6)
Model\ResourceOrderStoreTests.cs (1)
37cache.Properties[name].Value.ListValue.Values[0].StringValue = "30";
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)
479Assert.Equal(nestedValue, actual.Properties["nested"].Value); 1046Assert.Equal(expected, resource.Properties["property"].Value.StringValue);