Switched to MEF as a means to locate plugins and resolvers

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-07-25 22:33:11 -04:00
parent 84af205572
commit 97ee9fed14
32 changed files with 181 additions and 281 deletions

View File

@@ -43,8 +43,22 @@ namespace MediaBrowser.Common.Plugins
public abstract class BasePlugin
{
public abstract string Name { get; }
public string Path { get; set; }
public Version Version { get; set; }
public string Path
{
get
{
return System.IO.Path.GetDirectoryName(GetType().Assembly.Location);
}
}
public Version Version
{
get
{
return GetType().Assembly.GetName().Version;
}
}
public BasePluginConfiguration Configuration { get; protected set; }