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