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