38 references to ChildProcessLifetime
aspire (18)
DotNet\DotNetCliRunner.cs (1)
111public 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)
656Lifetime = ChildProcessLifetime.AppHost,
Projects\GuestAppHostProject.cs (1)
1113Lifetime = ChildProcessLifetime.OwnedTree,
Projects\NativeAppHostServerProject.cs (1)
259Lifetime = ChildProcessLifetime.AppHost,
Projects\PrebuiltAppHostServer.cs (1)
825Lifetime = 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 (20)
DotNet\OwnedProcessExecutionTests.cs (2)
32Lifetime = parentExitOptIn ? ChildProcessLifetime.CallerManaged : ChildProcessLifetime.OwnedTree,
DotNet\ProcessExecutionTests.cs (2)
240Lifetime = ownedTree ? Aspire.Shared.ChildProcessLifetime.OwnedTree : Aspire.Shared.ChildProcessLifetime.AppHost,
DotNet\ProcessInvocationOptionsTests.cs (1)
35Lifetime = 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);
Projects\NativeAppHostServerProjectTests.cs (1)
175Assert.Equal(ChildProcessLifetime.AppHost, options.Lifetime);
tests\Shared\Processes\ChildProcessTests.cs (7)
158Lifetime = ChildProcessLifetime.OwnedTree, 190Lifetime = ChildProcessLifetime.OwnedTree, 235Lifetime = ChildProcessLifetime.OwnedTree, 282Lifetime = ownedTree ? ChildProcessLifetime.OwnedTree : ChildProcessLifetime.CallerManaged, 347Lifetime = ownedTree ? ChildProcessLifetime.OwnedTree : ChildProcessLifetime.AppHost,
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
54Lifetime = ChildProcessLifetime.OwnedTree,