ServerEntryPoint.cs 913 B

12345678910111213141516171819202122232425262728293031323334
  1. using MediaBrowser.Common;
  2. using MediaBrowser.Controller.Plugins;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.WebDashboard
  5. {
  6. public class ServerEntryPoint : IServerEntryPoint
  7. {
  8. /// <summary>
  9. /// Gets the list of plugin configuration pages
  10. /// </summary>
  11. /// <value>The configuration pages.</value>
  12. public IEnumerable<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
  13. private readonly IApplicationHost _appHost;
  14. public static ServerEntryPoint Instance { get; private set; }
  15. public ServerEntryPoint(IApplicationHost appHost)
  16. {
  17. _appHost = appHost;
  18. Instance = this;
  19. }
  20. public void Run()
  21. {
  22. PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>();
  23. }
  24. public void Dispose()
  25. {
  26. }
  27. }
  28. }