withParentProcessLifetime

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withParentProcessLifetime(parentProcessId: number): IResource;
}

Signature

methodwithParentProcessLifetimebuilder
Configures a resource to use a persistent lifetime that ends when a parent process exits.
withParentProcessLifetime(parentProcessId: number): IResource
parentProcessIdnumberThe ID of the parent process to monitor.
IResource

Applies to

This method applies to the following types: