Skip to content

Expand WithLifetime support to ExecutableResource #6466

@MarcinJuraszek

Description

@MarcinJuraszek

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I love the addition of WithLifetime in the new version of Aspire, but am a bit surprised it's limited to container-based resources. I would love to use it with other things, e.g. Node/Npm resources. There's really not much point in having to restart npm watch on every Aspire startup for example. I'm also working on a custom resource which would manage locally-run Azurite instance, which would extend ExecutableResource and would also benefit from not being restarted every time we stop/start the App Host.

Describe the solution you'd like

I think adding support for WithLifetime to ExecutableResource would make a lot of sense.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions