SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

Using core 3.0 AssemblyLoadContext to Implement Plug-in Hot Loading

Open ghd258 opened this issue 6 years ago • 10 comments

Using core 3.0 AssemblyLoadContext to Implement Plug-in Hot Loading

ghd258 avatar Oct 09 '19 00:10 ghd258

ASP.NET Core doesn't design to support plug-in hot loading. Yes you can use AssemblyLoadContext to load plugins, but you can only register plugins (AddApplicationPart) at the Startup. So in order to load a plugin the website will need to be restarted.

thiennn avatar Oct 09 '19 05:10 thiennn

In order to load the plug-in, you need to restart the website. Can you do that without restarting the website?

ghd258 avatar Oct 09 '19 05:10 ghd258

As I said above, at the moment, there is no way to load a plugin after the website fully started

thiennn avatar Oct 09 '19 05:10 thiennn

https://www.cnblogs.com/zkweb/p/11630228.html

ghd258 avatar Oct 09 '19 05:10 ghd258

It's a console application not ASP.NET Core

thiennn avatar Oct 09 '19 06:10 thiennn

Thank you

ghd258 avatar Oct 09 '19 06:10 ghd258

no restarting the website https://www.cnblogs.com/lwqlun/p/11260750.html https://github.com/lamondlu/Mystique

ghd258 avatar Oct 09 '19 06:10 ghd258

I've also tested that there's no need to restart

ljq021 avatar Oct 11 '19 23:10 ljq021

@ghd258 no restarting the website https://www.cnblogs.com/lwqlun/p/11260750.html https://github.com/lamondlu/Mystique

ljq021 avatar Oct 11 '19 23:10 ljq021

This is a good change, I hope it can be revised.

ljq021 avatar Oct 11 '19 23:10 ljq021