2019-01-13 20:26:44 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2018-09-12 19:26:21 +02:00
|
|
|
|
using MediaBrowser.Common;
|
2013-03-05 05:34:00 +01:00
|
|
|
|
using MediaBrowser.Controller.Plugins;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.WebDashboard
|
|
|
|
|
{
|
|
|
|
|
public class ServerEntryPoint : IServerEntryPoint
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the list of plugin configuration pages
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The configuration pages.</value>
|
2016-10-26 08:01:42 +02:00
|
|
|
|
public List<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
|
2013-03-05 05:34:00 +01:00
|
|
|
|
|
|
|
|
|
private readonly IApplicationHost _appHost;
|
|
|
|
|
|
|
|
|
|
public static ServerEntryPoint Instance { get; private set; }
|
|
|
|
|
|
|
|
|
|
public ServerEntryPoint(IApplicationHost appHost)
|
|
|
|
|
{
|
|
|
|
|
_appHost = appHost;
|
|
|
|
|
Instance = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Run()
|
|
|
|
|
{
|
2016-10-26 08:01:42 +02:00
|
|
|
|
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
|
2013-03-05 05:34:00 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|