mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-20 05:04:18 +01:00
Switched to MEF as a means to locate plugins and resolvers
This commit is contained in:
parent
84af205572
commit
97ee9fed14
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user