33 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)
121
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
122
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
202
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Path, executable.Spec.ExecutablePath),
203
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
204
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
205
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.
Executable
.Pid, executable.Status?.ProcessId),
227
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Path, executable.Spec.ExecutablePath),
228
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.WorkDir, executable.Spec.WorkingDirectory),
229
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Args, effectiveArgs ?? [], isSensitive: true),
230
ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.
Executable
.Pid, executable.Status?.ProcessId),
Aspire.Hosting.Tests (18)
Dcp\DcpExecutorTests.cs (1)
796
Assert.Equal(effectiveArgs, GetEnumerablePropertyValue<string>(snapshot, KnownProperties.
Executable
.Args).ToArray());
Dcp\ResourceSnapshotBuilderTests.cs (14)
55
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Path, "Executable path", isSensitive: false, sortOrder: 0);
56
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.WorkDir, "Working directory", isSensitive: false, sortOrder: 1);
57
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Args, "Executable arguments", isSensitive: true, sortOrder: 2);
58
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Pid, "Process ID", isSensitive: false, sortOrder: 3);
82
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.Path, isSensitive: false);
83
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.WorkDir, isSensitive: false);
84
AssertDefaultProperty(snapshot, KnownProperties.
Executable
.Args, isSensitive: true);
87
AssertHighlightedProperty(snapshot, KnownProperties.
Executable
.Pid, "Process ID", isSensitive: false, sortOrder: 2);
160
Assert.True(GetProperty(snapshot, KnownProperties.
Executable
.Args).IsSensitive);
249
Assert.Equal(executablePath, GetProperty(snapshot, KnownProperties.
Executable
.Path).Value);
250
Assert.Equal(1234, GetProperty(snapshot, KnownProperties.
Executable
.Pid).Value);
258
Assert.True(GetProperty(snapshot, KnownProperties.
Executable
.Args).IsSensitive);
358
Assert.True(GetProperty(snapshot, KnownProperties.
Executable
.Args).IsSensitive);
514
Assert.True(GetProperty(snapshot, KnownProperties.
Executable
.Args).IsSensitive);
DistributedApplicationTests.cs (3)
422
var servicePid = Assert.IsType<int>(GetResourcePropertyValue(normalResource, KnownProperties.
Executable
.Pid));
2251
GetResourcePropertyValue(e, KnownProperties.
Executable
.Pid) is int,
2255
var executablePid = Assert.IsType<int>(GetResourcePropertyValue(executableEvent, KnownProperties.
Executable
.Pid));