natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code
Apache License 2.0
1.61k stars 227 forks source link

Add hot-reload to ASP.NET Core sample #261

Closed Misiu closed 1 year ago

Misiu commented 2 years ago

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 :)

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 1 year ago

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.