27 references to KnownProperties
Aspire.Dashboard (27)
Components\Pages\Resources.razor.cs (1)
335
if (current.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName) is { Length: > 0 } value)
Model\KnownPropertyLookup.cs (18)
25
new(
KnownProperties
.Resource.DisplayName, loc[nameof(ResourcesDetailsDisplayNameProperty)]),
26
new(
KnownProperties
.Resource.State, loc[nameof(ResourcesDetailsStateProperty)]),
27
new(
KnownProperties
.Resource.StartTime, loc[nameof(ResourcesDetailsStartTimeProperty)]),
28
new(
KnownProperties
.Resource.StopTime, loc[nameof(ResourcesDetailsStopTimeProperty)]),
29
new(
KnownProperties
.Resource.ExitCode, loc[nameof(ResourcesDetailsExitCodeProperty)]),
30
new(
KnownProperties
.Resource.HealthState, loc[nameof(ResourcesDetailsHealthStateProperty)])
36
new(
KnownProperties
.Project.Path, loc[nameof(ResourcesDetailsProjectPathProperty)]),
37
new(
KnownProperties
.Executable.Pid, loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]),
43
new(
KnownProperties
.Executable.Path, loc[nameof(ResourcesDetailsExecutablePathProperty)]),
44
new(
KnownProperties
.Executable.WorkDir, loc[nameof(ResourcesDetailsExecutableWorkingDirectoryProperty)]),
45
new(
KnownProperties
.Executable.Args, loc[nameof(ResourcesDetailsExecutableArgumentsProperty)]),
46
new(
KnownProperties
.Executable.Pid, loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]),
52
new(
KnownProperties
.Container.Image, loc[nameof(ResourcesDetailsContainerImageProperty)]),
53
new(
KnownProperties
.Container.Id, loc[nameof(ResourcesDetailsContainerIdProperty)]),
54
new(
KnownProperties
.Container.Command, loc[nameof(ResourcesDetailsContainerCommandProperty)]),
55
new(
KnownProperties
.Container.Args, loc[nameof(ResourcesDetailsContainerArgumentsProperty)]),
56
new(
KnownProperties
.Container.Ports, loc[nameof(ResourcesDetailsContainerPortsProperty)]),
57
new(
KnownProperties
.Container.Lifetime, loc[nameof(ResourcesDetailsContainerLifetimeProperty)]),
Model\ResourceGridViewModel.cs (2)
61
foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName) == resource.Name))
76
var parentName = gridViewModel.Resource.GetResourcePropertyValue(
KnownProperties
.Resource.ParentName);
Model\ResourceSourceViewModel.cs (1)
47
if (resource.Properties.TryGetValue(
KnownProperties
.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModelExtensions.cs (5)
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);