Skip to content
Docs Try Aspire
Docs Try

withLifetimeOf

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

Signature

method withLifetimeOf builder
Configures a resource to match the lifetime of another resource.
withLifetimeOf(sourceBuilder: IResource): IResource
sourceBuilder IResource
IResource

Applies to

This method applies to the following types: