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