Move RemovePlugin to BaseKernel/IKernel

This commit is contained in:
Eric Reed 2013-02-26 16:53:45 -05:00
parent 4c1c717824
commit c555920fe7
3 changed files with 18 additions and 11 deletions

View File

@ -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;
}
}
}

View File

@ -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);
}
}

View File

@ -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>