36 references to ChildProcessLifetime
aspire (17)
DotNet\DotNetCliRunner.cs (1)
95
public
ChildProcessLifetime
Lifetime { get; set; }
DotNet\ProcessExecution.cs (2)
25
Lifetime = options.KillOnParentExit && options.Lifetime !=
ChildProcessLifetime
.AppHost
26
?
ChildProcessLifetime
.OwnedTree
Layout\LayoutProcessRunner.cs (3)
33
Lifetime =
ChildProcessLifetime
.OwnedTree,
76
if (!effectiveOptions.Detached && effectiveOptions.Lifetime !=
ChildProcessLifetime
.AppHost)
78
effectiveOptions.Lifetime =
ChildProcessLifetime
.OwnedTree;
Projects\DotNetAppHostProject.cs (1)
1562
Lifetime =
ChildProcessLifetime
.AppHost,
Projects\DotNetBasedAppHostServerProject.cs (1)
636
Lifetime =
ChildProcessLifetime
.AppHost,
Projects\GuestAppHostProject.cs (1)
1033
Lifetime =
ChildProcessLifetime
.OwnedTree,
Projects\PrebuiltAppHostServer.cs (1)
1354
Lifetime =
ChildProcessLifetime
.AppHost,
Projects\ProcessGuestLauncher.cs (1)
134
Lifetime =
ChildProcessLifetime
.OwnedTree,
src\Shared\ChildProcess.cs (5)
57
if (options.Detached && options.Lifetime ==
ChildProcessLifetime
.OwnedTree)
61
_isSupervisor = options.Lifetime ==
ChildProcessLifetime
.OwnedTree ||
122
if (_options.Lifetime ==
ChildProcessLifetime
.OwnedTree)
365
&& _options.Lifetime ==
ChildProcessLifetime
.AppHost
574
if (_options.Lifetime ==
ChildProcessLifetime
.OwnedTree && !process.HasExited)
src\Shared\ChildProcessOptions.cs (1)
27
public
ChildProcessLifetime
Lifetime { get; init; }
Aspire.Cli.Tests (19)
DotNet\OwnedProcessExecutionTests.cs (2)
32
Lifetime = parentExitOptIn ?
ChildProcessLifetime
.CallerManaged :
ChildProcessLifetime
.OwnedTree,
DotNet\ProcessExecutionTests.cs (2)
209
Lifetime = ownedTree ? Aspire.Shared.
ChildProcessLifetime
.OwnedTree : Aspire.Shared.
ChildProcessLifetime
.AppHost,
DotNet\ProcessInvocationOptionsTests.cs (1)
32
Lifetime =
ChildProcessLifetime
.AppHost,
Layout\LayoutProcessRunnerTests.cs (6)
40
Assert.Equal(
ChildProcessLifetime
.OwnedTree, capturedOptions.Lifetime);
90
Assert.Equal(
ChildProcessLifetime
.OwnedTree, capturedOptions.Lifetime);
93
Assert.Equal(
ChildProcessLifetime
.CallerManaged, callerOptions.Lifetime);
110
Assert.Equal(
ChildProcessLifetime
.CallerManaged, capturedOptions.Lifetime);
124
options: new ProcessInvocationOptions { Lifetime =
ChildProcessLifetime
.AppHost }, killOnParentExit: true);
128
Assert.Equal(
ChildProcessLifetime
.AppHost, capturedOptions.Lifetime);
tests\Shared\Processes\ChildProcessTests.cs (7)
157
Lifetime =
ChildProcessLifetime
.OwnedTree,
189
Lifetime =
ChildProcessLifetime
.OwnedTree,
234
Lifetime =
ChildProcessLifetime
.OwnedTree,
281
Lifetime = ownedTree ?
ChildProcessLifetime
.OwnedTree :
ChildProcessLifetime
.CallerManaged,
345
Lifetime = ownedTree ?
ChildProcessLifetime
.OwnedTree :
ChildProcessLifetime
.AppHost,
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
53
Lifetime =
ChildProcessLifetime
.OwnedTree,