You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using MediaBrowser.Common;
|
|
|
|
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>
|
|
|
|
public List<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>().ToList();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|