Skip to content
DocsTry Aspire
DocsTry

IResource.withLifetimeOf

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

Signature

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

Defined on

This method is defined on the following type: