https://github.com/marfusios/mkpluginssystem
Example of plugins system in the .NET world.
https://github.com/marfusios/mkpluginssystem
Last synced: 2 days ago
JSON representation
Example of plugins system in the .NET world.
- Host: GitHub
- URL: https://github.com/marfusios/mkpluginssystem
- Owner: Marfusios
- Created: 2014-09-19T11:26:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-19T21:41:32.000Z (over 11 years ago)
- Last Synced: 2023-04-10T14:49:41.102Z (about 3 years ago)
- Language: C#
- Homepage:
- Size: 320 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MKPluginsSystem
===============
Simple example of plugins system in the .NET world.
Every plugin is loaded in separate AppDomain. So you are able to modify plugins at application runtime (very useful on server side).
How to use:
- In your project add a reference to `PluginsCore` and `PluginsHost`
- Create your plugins which inherit from `PluginBase`, put them into separate assembly and set build output path to directory "Plugins"
- Use `PluginCollection` to load plugins by name
- Create parental class that implement interface `IParentPlugin` (see class `FakeHost` in unit tests assembly)
- Call method `Init` on every loaded plugin (constructor takes `IParentPlugin`)
**Check the `WinApp` project (fully MVVM application)** or **check the unit tests** for more information.