2020-02-23 04:11:43 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:03:10 -07:00
|
|
|
using System.Collections.Generic;
|
2019-01-13 12:26:44 -07:00
|
|
|
using System.Linq;
|
2019-01-27 07:40:37 -07:00
|
|
|
using System.Threading.Tasks;
|
2018-09-12 10:26:21 -07:00
|
|
|
using MediaBrowser.Common;
|
2013-03-04 21:34:00 -07:00
|
|
|
using MediaBrowser.Controller.Plugins;
|
|
|
|
|
|
|
|
namespace MediaBrowser.WebDashboard
|
|
|
|
{
|
2020-02-23 04:11:43 -07:00
|
|
|
public sealed class ServerEntryPoint : IServerEntryPoint
|
2013-03-04 21:34:00 -07:00
|
|
|
{
|
|
|
|
private readonly IApplicationHost _appHost;
|
|
|
|
|
|
|
|
public ServerEntryPoint(IApplicationHost appHost)
|
|
|
|
{
|
|
|
|
_appHost = appHost;
|
|
|
|
Instance = this;
|
|
|
|
}
|
|
|
|
|
2020-02-23 04:11:43 -07: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 07:40:37 -07:00
|
|
|
public Task RunAsync()
|
2013-03-04 21:34:00 -07:00
|
|
|
{
|
2016-10-25 23:01:42 -07:00
|
|
|
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
|
2019-01-27 07:40:37 -07:00
|
|
|
|
|
|
|
return Task.CompletedTask;
|
2013-03-04 21:34:00 -07:00
|
|
|
}
|
|
|
|
|
2020-02-23 04:11:43 -07:00
|
|
|
/// <inheritdoc />
|
2013-03-04 21:34:00 -07:00
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|