312 references to KnownProperties
Aspire.Dashboard (105)
Components\Controls\ParameterOverview.razor.cs (1)
97if (Resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property))
Components\Controls\ResourceDetails.razor.cs (7)
155string.Equals(property.Name, KnownProperties.Parameter.Value, StringComparisons.ResourcePropertyName) && 194[KnownProperties.Resource.State] = new ComponentMetadata 199[KnownProperties.Resource.DisplayName] = new ComponentMetadata 204[KnownProperties.Resource.HealthState] = new ComponentMetadata 229_valueComponents[KnownProperties.Parameter.Value] = metadata; 230_valueComponents[DisplayedResourcePropertyViewModel.GetUnknownKey(KnownProperties.Parameter.Value)] = metadata; 404|| string.Equals(vm.KnownProperty?.Key, KnownProperties.Resource.State, StringComparisons.ResourcePropertyName));
Components\Layout\ResourcesLayout.razor.cs (3)
1662var parentName = resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName); 1790if (resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } parentName) 1941var parentName = resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Components\Legacy\Pages\Resources.razor.cs (4)
752if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 846if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property)) 879.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == r.Name)) 917return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Components\Pages\ResourceOverview.Details.cs (14)
21KnownProperties.Resource.DisplayName, 22KnownProperties.Resource.State, 23KnownProperties.Resource.HealthState, 24KnownProperties.Resource.ResourceTypeDisplayName, 25KnownProperties.Resource.StartTime, 26KnownProperties.Resource.StopTime, 27KnownProperties.Resource.ExitCode, 28KnownProperties.Resource.Source, 35if (string.Equals(propertyName, KnownProperties.Resource.Type, StringComparisons.ResourcePropertyName)) 96string.Equals(property.Name, KnownProperties.Parameter.Value, StringComparisons.ResourcePropertyName) && 132_propertyValueComponents[KnownProperties.Parameter.Value] = metadata; 133_propertyValueComponents[DisplayedResourcePropertyViewModel.GetUnknownKey(KnownProperties.Parameter.Value)] = metadata; 145_propertyValueComponents[KnownProperties.Container.Image] = metadata; 146_propertyValueComponents[DisplayedResourcePropertyViewModel.GetUnknownKey(KnownProperties.Container.Image)] = metadata;
Components\Pages\Resources.razor.cs (4)
791if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 885if (resource.Properties.TryGetValue(KnownProperties.Parameter.Value, out var property)) 918.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == r.Name)) 956return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Model\KnownPropertyLookup.cs (9)
21new(new(KnownProperties.Resource.DisplayName, loc => loc[nameof(ResourcesDetailsDisplayNameProperty)]), KnownResourcePropertySortOrder.DisplayName), 22new(new(KnownProperties.Resource.Type, loc => loc[nameof(ResourcesTypeColumnHeader)]), KnownResourcePropertySortOrder.ResourceType), 23new(new(KnownProperties.Resource.ResourceTypeDisplayName, loc => loc[nameof(ResourcesDetailsResourceTypeDisplayNameProperty)]), KnownResourcePropertySortOrder.ResourceTypeDisplayName), 24new(new(KnownProperties.Resource.State, loc => loc[nameof(ResourcesDetailsStateProperty)]), KnownResourcePropertySortOrder.State), 25new(new(KnownProperties.Resource.HealthState, loc => loc[nameof(ResourcesDetailsHealthStateProperty)]), KnownResourcePropertySortOrder.HealthState), 26new(new(KnownProperties.Resource.StartTime, loc => loc[nameof(ResourcesDetailsStartTimeProperty)]), KnownResourcePropertySortOrder.StartTime), 27new(new(KnownProperties.Resource.StopTime, loc => loc[nameof(ResourcesDetailsStopTimeProperty)]), KnownResourcePropertySortOrder.StopTime), 28new(new(KnownProperties.Resource.ExitCode, loc => loc[nameof(ResourcesDetailsExitCodeProperty)]), KnownResourcePropertySortOrder.ExitCode), 29new(new(KnownProperties.Resource.ConnectionString, loc => loc[nameof(ResourcesDetailsConnectionStringProperty)]), KnownResourcePropertySortOrder.ConnectionString)
Model\LegacyResourcePropertyMetadata.cs (28)
20(KnownResourceTypes.Container, KnownProperties.Container.Image) => Create(KnownProperties.Container.Image, nameof(ResourcesDetailsContainerImageProperty), 0), 21(KnownResourceTypes.Container, KnownProperties.Container.Id) => Create(KnownProperties.Container.Id, nameof(ResourcesDetailsContainerIdProperty), 1), 22(KnownResourceTypes.Container, KnownProperties.Container.Command) => Create(KnownProperties.Container.Command, nameof(ResourcesDetailsContainerCommandProperty), 2), 23(KnownResourceTypes.Container, KnownProperties.Container.Args) => Create(KnownProperties.Container.Args, nameof(ResourcesDetailsContainerArgumentsProperty), 3), 24(KnownResourceTypes.Container, KnownProperties.Container.Ports) => Create(KnownProperties.Container.Ports, nameof(ResourcesDetailsContainerPortsProperty), 4), 25(KnownResourceTypes.Container, KnownProperties.Container.Lifetime) => Create(KnownProperties.Container.Lifetime, nameof(ResourcesDetailsContainerLifetimeProperty), 5), 26(KnownResourceTypes.Executable, KnownProperties.Executable.Path) => Create(KnownProperties.Executable.Path, nameof(ResourcesDetailsExecutablePathProperty), 0), 27(KnownResourceTypes.Executable, KnownProperties.Executable.WorkDir) => Create(KnownProperties.Executable.WorkDir, nameof(ResourcesDetailsExecutableWorkingDirectoryProperty), 1), 28(KnownResourceTypes.Executable, KnownProperties.Executable.Args) => Create(KnownProperties.Executable.Args, nameof(ResourcesDetailsExecutableArgumentsProperty), 2), 29(KnownResourceTypes.Executable, KnownProperties.Executable.Pid) => Create(KnownProperties.Executable.Pid, nameof(ResourcesDetailsExecutableProcessIdProperty), 3), 30(KnownResourceTypes.Project, KnownProperties.Project.Path) => Create(KnownProperties.Project.Path, nameof(ResourcesDetailsProjectPathProperty), 0), 31(KnownResourceTypes.Project, KnownProperties.Project.LaunchProfile) => Create(KnownProperties.Project.LaunchProfile, nameof(ResourcesDetailsProjectLaunchProfileProperty), 1), 32(KnownResourceTypes.Project, KnownProperties.Executable.Pid) => Create(KnownProperties.Executable.Pid, nameof(ResourcesDetailsExecutableProcessIdProperty), 2), 33(KnownResourceTypes.Parameter, KnownProperties.Parameter.Value) => Create(KnownProperties.Parameter.Value, nameof(ResourcesDetailsParameterValueProperty), 0),
Model\ResourceGridViewModel.cs (2)
60foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == resource.Name)) 75var parentName = gridViewModel.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Model\ResourceOutgoingPeerResolver.cs (4)
116if (!ArePropertyValuesEquivalent(resource1, resource2, KnownProperties.Resource.ConnectionString)) 121if (!ArePropertyValuesEquivalent(resource1, resource2, KnownProperties.Resource.ConnectionProperties)) 127if (!ArePropertyValuesEquivalent(resource1, resource2, KnownProperties.Parameter.Value)) 254else if (resource.Properties.ContainsKey(KnownProperties.Resource.ConnectionString))
Model\ResourceViewModel.cs (11)
59Properties.TryGetValue(KnownProperties.Resource.TraitPrefix + name, out var property) && property.Value.KindCase == Value.KindOneofCase.ListValue 66Properties.TryGetValue(KnownProperties.Resource.DisplayOrder, out var property) && 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) || 409KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag => _loc[nameof(Resources.Resources.ResourceTraitDashboardTags)], 410KnownProperties.Resource.DisplayOrder => _loc[nameof(Resources.Resources.ResourceDisplayOrder)], 442if (propertyViewModel.Name == KnownProperties.Container.Id) 491public bool IsTrait => Name.StartsWith(KnownProperties.Resource.TraitPrefix, StringComparison.Ordinal);
Model\ResourceViewModelExtensions.cs (12)
64return resource.TryGetCustomDataInt(KnownProperties.Resource.ExitCode, out exitCode); 69return resource.TryGetCustomDataString(KnownProperties.Container.Image, out containerImage); 74return resource.TryGetCustomDataString(KnownProperties.Project.Path, out projectPath); 79return resource.TryGetCustomDataString(KnownProperties.Tool.Package, out projectPath); 84return resource.TryGetCustomDataString(KnownProperties.Executable.Path, out executablePath); 89return resource.TryGetCustomDataStringArray(KnownProperties.Executable.Args, out arguments); 94return resource.TryGetCustomDataStringArray(KnownProperties.Resource.AppArgs, out arguments); 99return resource.TryGetCustomDataBoolArray(KnownProperties.Resource.AppArgsSensitivity, out argParams); 107return resource.Properties.ContainsKey(KnownProperties.Terminal.Enabled); 112return resource.TryGetCustomDataString(KnownProperties.Terminal.AutoFit, out var autoFit) && 125return resource.TryGetCustomDataString(KnownProperties.Terminal.ConsumerUdsPath, out consumerUdsPath); 130return resource.TryGetCustomDataStringArray(KnownProperties.Resource.WaitingFor, out dependencies) && dependencies.Length > 0;
src\Shared\Model\ResourceSourceViewModel.cs (6)
13if (properties.TryGetValue(KnownProperties.Resource.Source, out var explicitSource) && 21properties.TryGetValue(KnownProperties.Project.Path, out var projectPath) && 28properties.TryGetValue(KnownProperties.Tool.Package, out var toolPackage) && 34if (properties.TryGetValue(KnownProperties.Executable.Path, out var executablePath) && 40if (properties.TryGetValue(KnownProperties.Container.Image, out var containerImage) && 46if (properties.TryGetValue(KnownProperties.Resource.Source, out var source) &&
Aspire.Dashboard.Components.Tests (75)
Controls\ResourceDetailsTests.cs (18)
466[KnownProperties.Resource.WaitingFor] = new( 467KnownProperties.Resource.WaitingFor, 501[KnownProperties.Resource.State] = new ResourcePropertyViewModel( 502KnownProperties.Resource.State, 505knownProperty: new KnownProperty(KnownProperties.Resource.State, _ => Aspire.Dashboard.Resources.Resources.ResourcesDetailsStateProperty), 594[KnownProperties.Container.Command] = new( 595KnownProperties.Container.Command, 602[KnownProperties.Container.Image] = new( 603KnownProperties.Container.Image, 610[KnownProperties.Container.Id] = new( 611KnownProperties.Container.Id, 651KnownProperties.Resource.TraitPrefix + name, 810[KnownProperties.Parameter.Value] = CreateParameterValueProperty("Parameter 'p' not found in configuration.") 856[KnownProperties.Parameter.Value] = CreateParameterValueProperty("Parameter 'p' not found in configuration.") 902[KnownProperties.Parameter.Value] = CreateParameterValueProperty("Parameter 'p' not found in configuration.", isValueSensitive: true) 932[KnownProperties.Parameter.Value] = CreateParameterValueProperty(errorMessage) 959[KnownProperties.Parameter.Value] = CreateParameterValueProperty("resolved-value") 1011KnownProperties.Parameter.Value,
Controls\ResourceNameDisplayTests.cs (2)
33[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString(lifetime), false, null, 0, null, false)
Controls\TerminalDisconnectedBannerTests.cs (4)
40[KnownProperties.Resource.ExitCode] = new(KnownProperties.Resource.ExitCode, Value.ForString(exitCode), 121[KnownProperties.Resource.ExitCode] = new(KnownProperties.Resource.ExitCode, Value.ForString("42"),
Dialogs\ManageDataDialogTests.cs (2)
44[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString("Persistent"), false, null, 0, null, false)
Layout\ResourcesLayoutTests.cs (25)
363[InlineData(KnownResourceTypes.Project, KnownProperties.Project.Path, "MyFrontend.csproj")] 364[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Image, "postgres:17")] 365[InlineData(KnownResourceTypes.Executable, KnownProperties.Executable.Path, "worker.exe")] 366[InlineData("PostgresDatabase", KnownProperties.Resource.Source, "catalogdb")] 852var name = KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag; 880var name = KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag; 1051[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString("Persistent"), false, null, 0, null, false) 1184[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1188[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1219[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("root"), false, null, 0, null, false) 1240[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString("Persistent"), false, null, 0, null, false) 1591var tagKey = KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag; 1594[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString("postgres"), false, null, 0, null, false), 1635[KnownProperties.Resource.ParentName] = new(KnownProperties.Resource.ParentName, Value.ForString(parent), false, null, 0, null, false) 1685[KnownProperties.Terminal.Enabled] = new(KnownProperties.Terminal.Enabled, Value.ForString("true"), false, null, 0, null, false) 2378[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString(lifetime), false, null, 0, null, false)
Pages\ResourceOverviewPersistenceTests.cs (2)
84[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, Value.ForString(lifetime), false, null, 0, null, false)
Pages\ResourceOverviewTypeDisplayNameTests.cs (2)
81[KnownProperties.Resource.Type] = new(KnownProperties.Resource.Type, Value.ForString(resourceType), false, null, 0, null, false)
Pages\ResourcesTests.cs (13)
92[KnownProperties.Container.Lifetime] = new(KnownProperties.Container.Lifetime, ProtobufValue.ForString(lifetime), false, null, 0, null, false) 199.Add(KnownProperties.Resource.ParentName, new ResourcePropertyViewModel( 200KnownProperties.Resource.ParentName, 1272.Add(KnownProperties.Parameter.Value, new ResourcePropertyViewModel( 1273KnownProperties.Parameter.Value, 1304Assert.True(resource.Properties.ContainsKey(KnownProperties.Parameter.Value)); 1305Assert.Equal("my-secret-value", resource.Properties[KnownProperties.Parameter.Value].Value.StringValue); 1306Assert.True(resource.Properties[KnownProperties.Parameter.Value].IsValueSensitive); 1334.Add(KnownProperties.Parameter.Value, new ResourcePropertyViewModel( 1335KnownProperties.Parameter.Value, 1378.Add(KnownProperties.Parameter.Value, new ResourcePropertyViewModel( 1379KnownProperties.Parameter.Value,
Pages\TerminalsTests.cs (1)
414properties: terminal.Properties.Where(p => p.Key == KnownProperties.Terminal.Enabled).ToDictionary());
Pages\TerminalWindowTests.cs (2)
185.Where(p => p.Key is not KnownProperties.Terminal.ReplicaIndex and not KnownProperties.Terminal.ReplicaCount)
Shared\TerminalSetupHelpers.cs (4)
44[KnownProperties.Terminal.Enabled] = "true", 45[KnownProperties.Terminal.ReplicaIndex] = replicaIndex.ToString(CultureInfo.InvariantCulture), 46[KnownProperties.Terminal.ReplicaCount] = replicaCount.ToString(CultureInfo.InvariantCulture) 50properties[KnownProperties.Terminal.AutoFit] = fit ? "true" : "false";
Aspire.Dashboard.Playwright.Tests (25)
Integration\Playwright\ResourcePanelNavigationTests.cs (2)
513[KnownProperties.Terminal.Enabled] = new( 514KnownProperties.Terminal.Enabled,
Integration\Playwright\ResourcePaneResponsiveTests.cs (10)
2663[KnownProperties.Resource.ParentName] = 2664new(KnownProperties.Resource.ParentName, Value.ForString(index % 2 == 0 ? "api" : "cache"), false, null, 0, null, false) 2697var tagKey = KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag; 2702var key = type == KnownResourceTypes.Project ? KnownProperties.Project.Path : 2703type == KnownResourceTypes.Container ? KnownProperties.Container.Image : KnownProperties.Executable.Path; 2710properties = properties.Add(KnownProperties.Container.Lifetime, 2711new(KnownProperties.Container.Lifetime, Value.ForString("Persistent"), false, null, 0, null, false)); 2715properties = properties.Add(KnownProperties.Resource.ParentName, 2716new(KnownProperties.Resource.ParentName, Value.ForString(name == "frontend" ? "queue" : "cache"), false, null, 0, null, false));
Integration\Playwright\TemplateResourceAssertionsTests.cs (2)
87[KnownProperties.Container.Image] = new(KnownProperties.Container.Image,
Integration\Playwright\TerminalDockTests.cs (2)
490[KnownProperties.Terminal.Enabled] = new( 491KnownProperties.Terminal.Enabled,
Integration\Playwright\TerminalTests.cs (6)
672[KnownProperties.Terminal.Enabled] = StringProperty(KnownProperties.Terminal.Enabled, "true"), 673[KnownProperties.Terminal.ReplicaIndex] = StringProperty(KnownProperties.Terminal.ReplicaIndex, "0"), 674[KnownProperties.Terminal.ReplicaCount] = StringProperty(KnownProperties.Terminal.ReplicaCount, "1"),
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (3)
22KnownProperties.Project.Path, 24KnownProperties.Project.Path, 30knownProperty: new(KnownProperties.Project.Path, loc => "Path"),
Aspire.Dashboard.Tests (107)
Model\KnownPropertyLookupTests.cs (15)
16var (sortOrder, knownProperty) = lookup.FindProperty(KnownProperties.Resource.State); 20Assert.Equal(KnownProperties.Resource.State, knownProperty.Key); 24[InlineData(KnownProperties.Project.Path)] 25[InlineData(KnownProperties.Project.LaunchProfile)] 26[InlineData(KnownProperties.Executable.Path)] 27[InlineData(KnownProperties.Executable.WorkDir)] 28[InlineData(KnownProperties.Executable.Args)] 29[InlineData(KnownProperties.Executable.Pid)] 30[InlineData(KnownProperties.Container.Image)] 31[InlineData(KnownProperties.Container.Id)] 32[InlineData(KnownProperties.Container.Command)] 33[InlineData(KnownProperties.Container.Args)] 34[InlineData(KnownProperties.Container.Ports)] 35[InlineData(KnownProperties.Container.Lifetime)] 36[InlineData(KnownProperties.Parameter.Value)]
Model\ResourceIconHelpersTests.cs (2)
120[KnownProperties.Project.Path] = new ResourcePropertyViewModel(KnownProperties.Project.Path, Value.ForString(projectPath), isValueSensitive: false, knownProperty: null, sortOrder: 0, displayName: null, isHighlighted: false)
Model\ResourceMenuBuilderTests.cs (2)
175[KnownProperties.Terminal.Enabled] = new ResourcePropertyViewModel( 176KnownProperties.Terminal.Enabled, Google.Protobuf.WellKnownTypes.Value.ForString("true"),
Model\ResourceOrderStoreTests.cs (2)
263[KnownProperties.Resource.DisplayOrder] = new(KnownProperties.Resource.DisplayOrder, Value.ForString(order.ToString(CultureInfo.InvariantCulture)), false, null, 0, null, false)
Model\ResourceSourceViewModelTests.cs (10)
19AddStringProperty(KnownProperties.Executable.Path, testData.ExecutablePath); 20AddStringProperty(KnownProperties.Project.Path, testData.ProjectPath); 21AddStringProperty(KnownProperties.Container.Image, testData.ContainerImage); 22AddStringProperty(KnownProperties.Resource.Source, testData.SourceProperty); 26properties.TryAdd(KnownProperties.Executable.Args, new ResourcePropertyViewModel(KnownProperties.Executable.Args, Value.ForList(testData.ExecutableArguments.Select(Value.ForString).ToArray()), false, null, 0, displayName: null, isHighlighted: false)); 31properties.TryAdd(KnownProperties.Resource.AppArgs, new ResourcePropertyViewModel(KnownProperties.Resource.AppArgs, Value.ForList(testData.AppArgs.Select(Value.ForString).ToArray()), false, null, 0, displayName: null, isHighlighted: false)); 36properties.TryAdd(KnownProperties.Resource.AppArgsSensitivity, new ResourcePropertyViewModel(KnownProperties.Resource.AppArgsSensitivity, Value.ForList(testData.AppArgsSensitivity.Select(b => Value.ForNumber(Convert.ToInt32(b))).ToArray()), false, null, 0, displayName: null, isHighlighted: false));
Model\ResourceStateViewModelTests.cs (12)
82propertiesDictionary.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0, displayName: null, isHighlighted: false)); 95resource.Properties.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0, displayName: null, isHighlighted: false)); 119[KnownProperties.Resource.WaitingFor] = new( 120KnownProperties.Resource.WaitingFor, 147[KnownProperties.Resource.WaitingFor] = new( 148KnownProperties.Resource.WaitingFor, 178[KnownProperties.Resource.WaitingFor] = new( 179KnownProperties.Resource.WaitingFor, 206[KnownProperties.Resource.WaitingFor] = new( 207KnownProperties.Resource.WaitingFor,
Model\ResourceTagStoreTests.cs (1)
33var name = KnownProperties.Resource.TraitPrefix + KnownResourceTraits.Tag;
Model\ResourceViewModelExtensionsTerminalTests.cs (10)
19[KnownProperties.Terminal.Enabled] = StringProperty(KnownProperties.Terminal.Enabled, "true"), 46properties[KnownProperties.Terminal.Enabled] = StringProperty(KnownProperties.Terminal.Enabled, "true"); 50properties[KnownProperties.Terminal.ReplicaIndex] = StringProperty(KnownProperties.Terminal.ReplicaIndex, replicaIndex); 54properties[KnownProperties.Terminal.ReplicaCount] = StringProperty(KnownProperties.Terminal.ReplicaCount, replicaCount); 68[KnownProperties.Terminal.ConsumerUdsPath] = StringProperty(KnownProperties.Terminal.ConsumerUdsPath, path),
Model\ResourceViewModelTests.cs (22)
199Name = KnownProperties.Container.Image, 212var property = vm.Properties[KnownProperties.Container.Image]; 220[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Image, nameof(DashboardResources.ResourcesDetailsContainerImageProperty), 0)] 221[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Id, nameof(DashboardResources.ResourcesDetailsContainerIdProperty), 1)] 222[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Command, nameof(DashboardResources.ResourcesDetailsContainerCommandProperty), 2)] 223[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Args, nameof(DashboardResources.ResourcesDetailsContainerArgumentsProperty), 3)] 224[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Ports, nameof(DashboardResources.ResourcesDetailsContainerPortsProperty), 4)] 225[InlineData(KnownResourceTypes.Container, KnownProperties.Container.Lifetime, nameof(DashboardResources.ResourcesDetailsContainerLifetimeProperty), 5)] 226[InlineData(KnownResourceTypes.Executable, KnownProperties.Executable.Path, nameof(DashboardResources.ResourcesDetailsExecutablePathProperty), 0)] 227[InlineData(KnownResourceTypes.Executable, KnownProperties.Executable.WorkDir, nameof(DashboardResources.ResourcesDetailsExecutableWorkingDirectoryProperty), 1)] 228[InlineData(KnownResourceTypes.Executable, KnownProperties.Executable.Args, nameof(DashboardResources.ResourcesDetailsExecutableArgumentsProperty), 2)] 229[InlineData(KnownResourceTypes.Executable, KnownProperties.Executable.Pid, nameof(DashboardResources.ResourcesDetailsExecutableProcessIdProperty), 3)] 230[InlineData(KnownResourceTypes.Project, KnownProperties.Project.Path, nameof(DashboardResources.ResourcesDetailsProjectPathProperty), 0)] 231[InlineData(KnownResourceTypes.Project, KnownProperties.Project.LaunchProfile, nameof(DashboardResources.ResourcesDetailsProjectLaunchProfileProperty), 1)] 232[InlineData(KnownResourceTypes.Project, KnownProperties.Executable.Pid, nameof(DashboardResources.ResourcesDetailsExecutableProcessIdProperty), 2)] 233[InlineData(KnownResourceTypes.Parameter, KnownProperties.Parameter.Value, nameof(DashboardResources.ResourcesDetailsParameterValueProperty), 0)] 281Name = KnownProperties.Container.Image, 289var property = vm.Properties[KnownProperties.Container.Image]; 304Name = KnownProperties.Container.Image, 331Name = KnownProperties.Container.Id, 339var image = vm.Properties[KnownProperties.Container.Image]; 345var id = vm.Properties[KnownProperties.Container.Id];
Model\TelemetryExportServiceTests.cs (6)
1398[KnownProperties.Resource.WaitingFor] = new( 1399KnownProperties.Resource.WaitingFor, 1406[KnownProperties.Resource.ConnectionProperties] = new( 1407KnownProperties.Resource.ConnectionProperties, 1433var waitingForProperty = Assert.IsType<JsonArray>(deserialized.Properties[KnownProperties.Resource.WaitingFor]); 1436var connectionPropertiesObject = Assert.IsType<JsonObject>(deserialized.Properties[KnownProperties.Resource.ConnectionProperties]);
ResourceOutgoingPeerResolverTests.cs (6)
583[KnownProperties.Resource.ConnectionString] = new( 584name: KnownProperties.Resource.ConnectionString, 597properties[KnownProperties.Resource.ConnectionProperties] = new( 598name: KnownProperties.Resource.ConnectionProperties, 619[KnownProperties.Parameter.Value] = new( 620name: KnownProperties.Parameter.Value,
Shared\MockDashboardClient.cs (3)
22KnownProperties.Project.Path, 24KnownProperties.Project.Path, 30knownProperty: new(KnownProperties.Project.Path, loc => "Path"),
Terminal\DefaultTerminalConnectionResolverTests.cs (16)
103[KnownProperties.Terminal.ReplicaIndex] = StringProperty(KnownProperties.Terminal.ReplicaIndex, "0"), 104[KnownProperties.Terminal.ReplicaCount] = StringProperty(KnownProperties.Terminal.ReplicaCount, "1"), 105[KnownProperties.Terminal.ConsumerUdsPath] = StringProperty(KnownProperties.Terminal.ConsumerUdsPath, "/tmp/svc.sock"), 123[KnownProperties.Terminal.Enabled] = StringProperty(KnownProperties.Terminal.Enabled, "true"), 124[KnownProperties.Terminal.ReplicaIndex] = StringProperty(KnownProperties.Terminal.ReplicaIndex, "0"), 125[KnownProperties.Terminal.ReplicaCount] = StringProperty(KnownProperties.Terminal.ReplicaCount, "1"), 166[KnownProperties.Terminal.Enabled] = StringProperty(KnownProperties.Terminal.Enabled, "true"), 167[KnownProperties.Terminal.ConsumerUdsPath] = StringProperty(KnownProperties.Terminal.ConsumerUdsPath, udsPath),