浏览代码

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

LukePulverenti 12 年之前
父节点
当前提交
ecb89c3d1d
共有 3 个文件被更改,包括 18 次插入11 次删除
  1. 11 0
      MediaBrowser.Common/Kernel/BaseKernel.cs
  2. 7 0
      MediaBrowser.Common/Kernel/IKernel.cs
  3. 0 11
      MediaBrowser.Controller/Kernel.cs

+ 11 - 0
MediaBrowser.Common/Kernel/BaseKernel.cs

@@ -462,5 +462,16 @@ namespace MediaBrowser.Common.Kernel
         /// <value>The resource pools.</value>
         public ResourcePool ResourcePools { get; set; }
 
+        /// <summary>
+        /// Removes the plugin.
+        /// </summary>
+        /// <param name="plugin">The plugin.</param>
+        public void RemovePlugin(IPlugin plugin)
+        {
+            var list = Plugins.ToList();
+            list.Remove(plugin);
+            Plugins = list;
+        }
+
     }
 }

+ 7 - 0
MediaBrowser.Common/Kernel/IKernel.cs

@@ -123,5 +123,12 @@ namespace MediaBrowser.Common.Kernel
         /// </summary>
         /// <value>The resource pools.</value>
         ResourcePool ResourcePools { get; set; }
+
+        /// <summary>
+        /// Removes the plugin.
+        /// </summary>
+        /// <param name="plugin">The plugin.</param>
+        void RemovePlugin(IPlugin plugin);
+
     }
 }

+ 0 - 11
MediaBrowser.Controller/Kernel.cs

@@ -536,17 +536,6 @@ namespace MediaBrowser.Controller
             });
         }
 
-        /// <summary>
-        /// Removes the plugin.
-        /// </summary>
-        /// <param name="plugin">The plugin.</param>
-        internal void RemovePlugin(IPlugin plugin)
-        {
-            var list = Plugins.ToList();
-            list.Remove(plugin);
-            Plugins = list;
-        }
-
         /// <summary>
         /// Gets the system info.
         /// </summary>