jellyfin/MediaBrowser.WebDashboard/ServerEntryPoint.cs

43 lines
1.1 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
using System.Collections.Generic;
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;
using MediaBrowser.Controller.Plugins;
namespace MediaBrowser.WebDashboard
{
public sealed class ServerEntryPoint : IServerEntryPoint
{
private readonly IApplicationHost _appHost;
public ServerEntryPoint(IApplicationHost appHost)
{
_appHost = appHost;
Instance = this;
}
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()
{
2016-10-25 23:01:42 -07:00
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
2019-01-27 07:40:37 -07:00
return Task.CompletedTask;
}
/// <inheritdoc />
public void Dispose()
{
}
}
}