Skip to content
Docs Try Aspire
Docs Try

withPersistentLifetime

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withPersistentLifetime(): IResource;
}

Signature

method withPersistentLifetime builder
Configures a resource to use a persistent lifetime.
withPersistentLifetime(): IResource
IResource

Applies to

This method applies to the following types: