ServerEntryPoint.cs 948 B

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