Skip to content
Docs Try Aspire
Docs Try

IResource.withLifetimeOf

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

Defined on

This method is defined on the following type: