natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add hot-reload to ASP.NET Core sample

Misiu opened this issue · comments

First of all, thank you for such a great project!

Is your feature request related to a problem? Please describe.
I was searching for a way to add support for a plugin system to my ASP.NET 6 (REST) app.
I noticed that this project supports hot-reload (#62), but only one sample shows the usage, and it is a console app.

Describe the solution you'd like
Ideally, there should be a sample showing how to configure and use your library with ASP.NET 6 API app, so that we can add/replace/delete plugins during runtime (for example via an upload endpoint) and the change will be instantly available in Swagger.
The use case is simple: add/change/remove features without the need to restart the entire app.

Describe alternatives you've considered
The alternative is quite simple: restart the app after adding/updating/removing plugins, but this should be avoided.

Additional context
Nothing much to add here, except that it would be a very useful example :)

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.

Closing due to inactivity.
If you are looking at this issue in the future and think it should be reopened, please make a commented here and mention natemcmaster so he sees the notification.