mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-08 07:12:56 +01:00
removed plugin configuration pages from the kernel
This commit is contained in:
34
MediaBrowser.WebDashboard/ServerEntryPoint.cs
Normal file
34
MediaBrowser.WebDashboard/ServerEntryPoint.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using MediaBrowser.Common;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.WebDashboard
|
||||
{
|
||||
public class ServerEntryPoint : IServerEntryPoint
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the list of plugin configuration pages
|
||||
/// </summary>
|
||||
/// <value>The configuration pages.</value>
|
||||
public IEnumerable<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
|
||||
|
||||
private readonly IApplicationHost _appHost;
|
||||
|
||||
public static ServerEntryPoint Instance { get; private set; }
|
||||
|
||||
public ServerEntryPoint(IApplicationHost appHost)
|
||||
{
|
||||
_appHost = appHost;
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public void Run()
|
||||
{
|
||||
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user