jellyfin/MediaBrowser.WebDashboard/ServerEntryPoint.cs

37 lines
948 B
C#
Raw Normal View History

2018-09-12 10:26:21 -07:00
using System;
using MediaBrowser.Common;
using MediaBrowser.Controller.Plugins;
using System.Collections.Generic;
2016-10-25 23:01:42 -07:00
using System.Linq;
namespace MediaBrowser.WebDashboard
{
public class ServerEntryPoint : IServerEntryPoint
{
/// <summary>
/// Gets the list of plugin configuration pages
/// </summary>
/// <value>The configuration pages.</value>
2016-10-25 23:01:42 -07:00
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()
{
2016-10-25 23:01:42 -07:00
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
}
public void Dispose()
{
}
}
}