19 instantiations of KnownProperty
Aspire.Dashboard (18)
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)]),
Aspire.Dashboard.Tests (1)
Model\ResourceViewModelTests.cs (1)
125
var kp = new
KnownProperty
("foo", loc => "bar");
19 references to KnownProperty
Aspire.Dashboard (10)
Model\KnownPropertyLookup.cs (7)
10
(int priority,
KnownProperty
? knownProperty) FindProperty(string resourceType, string uid);
15
private readonly List<
KnownProperty
> _resourceProperties;
16
private readonly List<
KnownProperty
> _projectProperties;
17
private readonly List<
KnownProperty
> _executableProperties;
18
private readonly List<
KnownProperty
> _containerProperties;
60
public (int priority,
KnownProperty
? knownProperty) FindProperty(string resourceType, string uid)
72
var
kp = knownProperties[i];
Model\ResourceViewModel.cs (3)
271
public
KnownProperty
? KnownProperty => _propertyViewModel.KnownProperty;
330
public
KnownProperty
? KnownProperty { get; }
335
public ResourcePropertyViewModel(string name, Value value, bool isValueSensitive,
KnownProperty
? knownProperty, int priority)
Aspire.Dashboard.Components.Tests (4)
tests\Aspire.Dashboard.Tests\Model\MockKnownPropertyLookup.cs (4)
11
private
KnownProperty
? _knownProperty;
13
public MockKnownPropertyLookup(int priority,
KnownProperty
? knownProperty) : this()
19
public void Set(int priority,
KnownProperty
? knownProperty)
25
public (int priority,
KnownProperty
? knownProperty) FindProperty(string resourceType, string uid)
Aspire.Dashboard.Tests (5)
Model\MockKnownPropertyLookup.cs (4)
11
private
KnownProperty
? _knownProperty;
13
public MockKnownPropertyLookup(int priority,
KnownProperty
? knownProperty) : this()
19
public void Set(int priority,
KnownProperty
? knownProperty)
25
public (int priority,
KnownProperty
? knownProperty) FindProperty(string resourceType, string uid)
Model\ResourceViewModelTests.cs (1)
125
var
kp = new KnownProperty("foo", loc => "bar");