. NET open source plug-in kernel, support WinForm and ASP. The purpose of the design is to use the "Development platform + plug-in kernel" to develop subsystems, and to carry out some expansion of the system, customized development.
Unlike many of the plugins implemented by Daniel, the plug-in kernel does not need to build an ASP. NET MVC, and does not need to build view,controller in the plugin.
It is possible that the plugin simply provides a rest API. Plug-ins should belong to the underlying abstraction and do not depend on specific frameworks and tools.
How to use?
1. Create a plug-in host
Implementation interface: Ipluginhost
2. Write the deployment plug-in to write the plug-in, and placed in the specified directory (default plugins), plug-ins need to implement the IPlugin interface
3. Connect the plugin:
Ipluginhost.connect ()
The plugin directory is as follows:
Implementation mechanism: Using appdomain.loadassembly () to achieve dynamic loading, interface needs to implement IPlugin interface,
You need to implement Ipluginhost (plug-in host) to implement plug-in management, installation and upgrade. The principle is very simple, the details teach many.
PS: Write a lot of things, directly take out the open source. Make the wheel very hard, ask fork to support a bit.
Managed Address: Https://github.com/newmin/dotnet-plugin-kernel
Application Case: Http://github.com/newmin/cms
. NET open source plug-in kernel