natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Does hot reload work for aspnetcore plugins with service registration?

NewHeight opened this issue · comments

Hi, I has a aspnetcore plugin with service registration into the ServiceCollection, does it has any method to re-register the service when the plugin reload?

No such method or feature exists. The hot reload capability is pretty bare-bones and doesn't work with ASP.NET Core's dependency injection setup, which is immutable after the service container is initialized.

Hope that helps,
Nate