aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Plugins/BasePlugin.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-25 22:33:11 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-07-25 22:33:11 -0400
commit97ee9fed14e3b5d76805cd79d4378c0b71c0abd9 (patch)
treea3814b4c22029b139cb5dd599121aa356180523a /MediaBrowser.Common/Plugins/BasePlugin.cs
parent84af205572e6ab9ca3e10f6de33cbce278e01335 (diff)
Switched to MEF as a means to locate plugins and resolvers
Diffstat (limited to 'MediaBrowser.Common/Plugins/BasePlugin.cs')
-rw-r--r--MediaBrowser.Common/Plugins/BasePlugin.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs
index 7fdb2583e..44f880fd2 100644
--- a/MediaBrowser.Common/Plugins/BasePlugin.cs
+++ b/MediaBrowser.Common/Plugins/BasePlugin.cs
@@ -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; }