Skip to content

Marfusios/MKPluginsSystem

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Example of plugins system in the .NET world.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages