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
- Create your plugins which inherit from
PluginBase, put them into separate assembly and set build output path to directory "Plugins"
PluginCollectionto load plugins by name
- Create parental class that implement interface
FakeHostin unit tests assembly)
- Call method
Initon every loaded plugin (constructor takes
WinApp project (fully MVVM application) or check the unit tests for more information.