26 references to Executable
Aspire.Hosting (15)
Dashboard\ResourcePropertySnapshotMetadata.cs (5)
46
(KnownResourceTypes.Executable, KnownProperties.
Executable
.Path) => (ResourcePropertyExecutablePathDisplayName, true, 0),
47
(KnownResourceTypes.Executable, KnownProperties.
Executable
.WorkDir) => (ResourcePropertyExecutableWorkingDirectoryDisplayName, true, 1),
48
(KnownResourceTypes.Executable, KnownProperties.
Executable
.Args) => (ResourcePropertyExecutableArgumentsDisplayName, true, 2),
49
(KnownResourceTypes.Executable, KnownProperties.
Executable
.Pid) => (ResourcePropertyExecutableProcessIdDisplayName, true, 3),
52
(KnownResourceTypes.Project, KnownProperties.
Executable
.Pid) => (ResourcePropertyExecutableProcessIdDisplayName, true, 2),
Dcp\ResourceSnapshotBuilder.cs (10)
120
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
121
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
185
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Path, executable.Spec.ExecutablePath),
186
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
187
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
188
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Pid, executable.Status?.ProcessId),
209
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Path, executable.Spec.ExecutablePath),
210
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
211
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
212
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Pid, executable.Status?.ProcessId),
Aspire.Hosting.Tests (11)
Dcp\DcpExecutorTests.cs (1)
401
Assert.Equal(effectiveArgs, GetEnumerablePropertyValue<string>(snapshot, KnownProperties.
Executable
.Args).ToArray());
Dcp\ResourceSnapshotBuilderTests.cs (8)
54
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Path, "Executable path", isSensitive: false, sortOrder: 0);
55
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.WorkDir, "Working directory", isSensitive: false, sortOrder: 1);
56
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Args, "Executable arguments", isSensitive: true, sortOrder: 2);
57
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Pid, "Process ID", isSensitive: false, sortOrder: 3);
81
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.Path, isSensitive: false);
82
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.WorkDir, isSensitive: false);
83
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.Args, isSensitive: true);
86
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Pid, "Process ID", isSensitive: false, sortOrder: 2);
DistributedApplicationTests.cs (2)
2162
GetResourcePropertyValue(e, KnownProperties.
Executable
.Pid) is int,
2166
var executablePid = Assert.IsType<int>(GetResourcePropertyValue(executableEvent, KnownProperties.
Executable
.Pid));