Skip to content
DocsTry Aspire
DocsTry

IResource.withParentProcessLifetime

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... 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
parentProcessIdnumber
IResource

Defined on

This method is defined on the following type: