withParentProcessLifetime
Method
interface ContainerResource { // ... omitted for brevity withParentProcessLifetime(parentProcessId: number): IResource;}Signature
method
withParentProcessLifetime builderConfigures a resource to use a persistent lifetime that ends when a parent process exits.
withParentProcessLifetime(parentProcessId: number): IResourceParameters
parentProcessId numberThe ID of the parent process to monitor.Returns
IResource Applies to
This method applies to the following types: