#pragma warning disable CS1591
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
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; }
        /// 
        /// Gets the list of plugin configuration pages.
        /// 
        /// The configuration pages.
        public List PluginConfigurationPages { get; private set; }
        /// 
        public Task RunAsync()
        {
            PluginConfigurationPages = _appHost.GetExports().ToList();
            return Task.CompletedTask;
        }
        /// 
        public void Dispose()
        {
        }
    }
}