zkweb-framework / ZKWeb

A flexible web framework supports .Net Framework and .Net Core
MIT License
484 stars 141 forks source link

add ZKMod project #13

Closed 303248153 closed 4 years ago

303248153 commented 6 years ago

This is a very early idea that may not eventually be realized. To resolve early design mistakes in zkweb project, I want to create a new project called ZKWebZero, it should contain the following features:

addition ideas

This is a long term job, you can add your opinion if you saw this issue, but don't expect it to be available soon.

303248153 commented 6 years ago

AppDomain.CreateDomain is unavailable on linux.

Unhandled Exception: System.PlatformNotSupportedException: Secondary AppDomains are not supported on this platform.
   at System.AppDomain.CreateDomain(String friendlyName)
   at appdomaintest.Program.Main(String[] args) in /home/ubuntu/Projects/appdomaintest/Program.cs:line 11
303248153 commented 6 years ago

wait for these issues, maybe available on .net core 2.2

303248153 commented 6 years ago

Changed idea, the project name should be ZKMod and it should only contains the module system. After refractory there will be 3 primary project: ZKWeb, ZKStandard, ZKMod, and ZKMod should be independent. The final decision is load all plugins in same appdomain or loadcontext, and unload them all when reload any module. I don't have much time now, I would like to start working on it after november.

303248153 commented 4 years ago

Final solution: no ZKMod project, .NET Core 3.0 collectible assembly is used in ZKWeb 3.0 and there no hot reloading support for .NET Framework because microsoft set it dead.