aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ServerEntryPoint.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-04 23:34:00 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-04 23:34:00 -0500
commit176d09016497524c83f0ff9f0cc99a5ae433dad5 (patch)
tree365787bc9d8532c6996de8b58c66fc414d014e68 /MediaBrowser.WebDashboard/ServerEntryPoint.cs
parentbf95cfe2e50517df46e6f849aba58b6fed2141c7 (diff)
removed plugin configuration pages from the kernel
Diffstat (limited to 'MediaBrowser.WebDashboard/ServerEntryPoint.cs')
-rw-r--r--MediaBrowser.WebDashboard/ServerEntryPoint.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ServerEntryPoint.cs b/MediaBrowser.WebDashboard/ServerEntryPoint.cs
new file mode 100644
index 000000000..690c07d8f
--- /dev/null
+++ b/MediaBrowser.WebDashboard/ServerEntryPoint.cs
@@ -0,0 +1,34 @@
+using MediaBrowser.Common;
+using MediaBrowser.Controller.Plugins;
+using System.Collections.Generic;
+
+namespace MediaBrowser.WebDashboard
+{
+ public class ServerEntryPoint : IServerEntryPoint
+ {
+ /// <summary>
+ /// Gets the list of plugin configuration pages
+ /// </summary>
+ /// <value>The configuration pages.</value>
+ public IEnumerable<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()
+ {
+ PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>();
+ }
+
+ public void Dispose()
+ {
+ }
+ }
+}