ServerEntryPoint.cs 931 B

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