31 references to KnownProperties
Aspire.Dashboard (31)
Components\Pages\Resources.razor.cs (3)
576
if (current.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName) is { Length: > 0 } value)
698
.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName) == r.Name))
736
return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName)));
Model\KnownPropertyLookup.cs (18)
24
new(
KnownProperties
.Resource.DisplayName, loc => loc[nameof(ResourcesDetailsDisplayNameProperty)]),
25
new(
KnownProperties
.Resource.State, loc => loc[nameof(ResourcesDetailsStateProperty)]),
26
new(
KnownProperties
.Resource.StartTime, loc => loc[nameof(ResourcesDetailsStartTimeProperty)]),
27
new(
KnownProperties
.Resource.StopTime, loc => loc[nameof(ResourcesDetailsStopTimeProperty)]),
28
new(
KnownProperties
.Resource.ExitCode, loc => loc[nameof(ResourcesDetailsExitCodeProperty)]),
29
new(
KnownProperties
.Resource.HealthState, loc => loc[nameof(ResourcesDetailsHealthStateProperty)])
35
new(
KnownProperties
.Project.Path, loc => loc[nameof(ResourcesDetailsProjectPathProperty)]),
36
new(
KnownProperties
.Executable.Pid, loc => loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]),
42
new(
KnownProperties
.Executable.Path, loc => loc[nameof(ResourcesDetailsExecutablePathProperty)]),
43
new(
KnownProperties
.Executable.WorkDir, loc => loc[nameof(ResourcesDetailsExecutableWorkingDirectoryProperty)]),
44
new(
KnownProperties
.Executable.Args, loc => loc[nameof(ResourcesDetailsExecutableArgumentsProperty)]),
45
new(
KnownProperties
.Executable.Pid, loc => loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]),
51
new(
KnownProperties
.Container.Image, loc => loc[nameof(ResourcesDetailsContainerImageProperty)]),
52
new(
KnownProperties
.Container.Id, loc => loc[nameof(ResourcesDetailsContainerIdProperty)]),
53
new(
KnownProperties
.Container.Command, loc => loc[nameof(ResourcesDetailsContainerCommandProperty)]),
54
new(
KnownProperties
.Container.Args, loc => loc[nameof(ResourcesDetailsContainerArgumentsProperty)]),
55
new(
KnownProperties
.Container.Ports, loc => loc[nameof(ResourcesDetailsContainerPortsProperty)]),
56
new(
KnownProperties
.Container.Lifetime, loc => loc[nameof(ResourcesDetailsContainerLifetimeProperty)]),
Model\ResourceGridViewModel.cs (2)
60
foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName) == resource.Name))
75
var parentName = gridViewModel.Resource.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName);
Model\ResourceSourceViewModel.cs (1)
35
if (resource.Properties.TryGetValue(
KnownProperties
.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModelExtensions.cs (7)
39
return resource.TryGetCustomDataInt(
KnownProperties
.Resource.ExitCode, out exitCode);
44
return resource.TryGetCustomDataString(
KnownProperties
.Container.Image, out containerImage);
49
return resource.TryGetCustomDataString(
KnownProperties
.Project.Path, out projectPath);
54
return resource.TryGetCustomDataString(
KnownProperties
.Executable.Path, out executablePath);
59
return resource.TryGetCustomDataStringArray(
KnownProperties
.Executable.Args, out arguments);
64
return resource.TryGetCustomDataStringArray(
KnownProperties
.Resource.AppArgs, out arguments);
69
return resource.TryGetCustomDataBoolArray(
KnownProperties
.Resource.AppArgsSensitivity, out argParams);