diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-05 11:50:21 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-05 11:50:21 -0500 |
| commit | 55a776427b97bec48a70a4b4f403b52935b620ea (patch) | |
| tree | 5fc0e1feaee36df2116a4842d3eb9d27c491bbae /MediaBrowser.Common/Plugins/BasePlugin.cs | |
| parent | 9e84a712ae3da9eada815e790160a17153b76d37 (diff) | |
Removed unused properties from BaseItem.
Diffstat (limited to 'MediaBrowser.Common/Plugins/BasePlugin.cs')
| -rw-r--r-- | MediaBrowser.Common/Plugins/BasePlugin.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs index ea4439c4e..795d22100 100644 --- a/MediaBrowser.Common/Plugins/BasePlugin.cs +++ b/MediaBrowser.Common/Plugins/BasePlugin.cs @@ -57,7 +57,7 @@ namespace MediaBrowser.Common.Plugins { get { return typeof(TConfigurationType); } } - + /// <summary> /// The _assembly name /// </summary> @@ -90,7 +90,8 @@ namespace MediaBrowser.Common.Plugins if (!_uniqueId.HasValue) { - _uniqueId = Marshal.GetTypeLibGuidForAssembly(GetType().Assembly); + var attribute = (GuidAttribute)GetType().Assembly.GetCustomAttributes(typeof(GuidAttribute), true)[0]; + _uniqueId = new Guid(attribute.Value); } return _uniqueId.Value; @@ -282,7 +283,7 @@ namespace MediaBrowser.Common.Plugins { throw new ArgumentNullException("configuration"); } - + Configuration = (TConfigurationType)configuration; SaveConfiguration(); @@ -315,7 +316,7 @@ namespace MediaBrowser.Common.Plugins /// </summary> public virtual void OnUninstalling() { - + } /// <summary> |
