DotNetCorePlugins icon indicating copy to clipboard operation
DotNetCorePlugins copied to clipboard

Add hot-reload to ASP.NET Core sample

Open Misiu opened this issue 3 years ago • 0 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 (https://github.com/natemcmaster/DotNetCorePlugins/pull/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 :)

Misiu avatar Jul 18 '22 09:07 Misiu