2020-02-23 11:11:43 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:03:10 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 19:26:44 +00:00
|
|
|
using System.Linq;
|
2019-01-27 14:40:37 +00:00
|
|
|
using System.Threading.Tasks;
|
2018-09-12 17:26:21 +00:00
|
|
|
using MediaBrowser.Common;
|
2013-03-05 04:34:00 +00:00
|
|
|
using MediaBrowser.Controller.Plugins;
|
|
|
|
|
|
|
|
namespace MediaBrowser.WebDashboard
|
|
|
|
{
|
2020-02-23 11:11:43 +00:00
|
|
|
public sealed class ServerEntryPoint : IServerEntryPoint
|
2013-03-05 04:34:00 +00:00
|
|
|
{
|
|
|
|
private readonly IApplicationHost _appHost;
|
|
|
|
|
|
|
|
public ServerEntryPoint(IApplicationHost appHost)
|
|
|
|
{
|
|
|
|
_appHost = appHost;
|
|
|
|
Instance = this;
|
|
|
|
}
|
|
|
|
|
2020-02-23 11:11:43 +00:00
|
|
|
public static ServerEntryPoint Instance { get; private set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the list of plugin configuration pages.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The configuration pages.</value>
|
|
|
|
public List<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
2019-01-27 14:40:37 +00:00
|
|
|
public Task RunAsync()
|
2013-03-05 04:34:00 +00:00
|
|
|
{
|
2016-10-26 06:01:42 +00:00
|
|
|
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
|
2019-01-27 14:40:37 +00:00
|
|
|
|
|
|
|
return Task.CompletedTask;
|
2013-03-05 04:34:00 +00:00
|
|
|
}
|
|
|
|
|
2020-02-23 11:11:43 +00:00
|
|
|
/// <inheritdoc />
|
2013-03-05 04:34:00 +00:00
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|