From 68b3ca63837e572756e6670547ea2e27d995cbe3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 11 Nov 2016 00:43:57 -0500 Subject: update core project --- Emby.Server.Core/EntryPoints/StartupWizard.cs | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Emby.Server.Core/EntryPoints/StartupWizard.cs (limited to 'Emby.Server.Core/EntryPoints') diff --git a/Emby.Server.Core/EntryPoints/StartupWizard.cs b/Emby.Server.Core/EntryPoints/StartupWizard.cs new file mode 100644 index 0000000000..30ceca073d --- /dev/null +++ b/Emby.Server.Core/EntryPoints/StartupWizard.cs @@ -0,0 +1,59 @@ +using MediaBrowser.Controller; +using MediaBrowser.Controller.Plugins; +using MediaBrowser.Model.Logging; +using Emby.Server.Core.Browser; + +namespace Emby.Server.Core.EntryPoints +{ + /// + /// Class StartupWizard + /// + public class StartupWizard : IServerEntryPoint + { + /// + /// The _app host + /// + private readonly IServerApplicationHost _appHost; + /// + /// The _user manager + /// + private readonly ILogger _logger; + + /// + /// Initializes a new instance of the class. + /// + /// The app host. + /// The logger. + public StartupWizard(IServerApplicationHost appHost, ILogger logger) + { + _appHost = appHost; + _logger = logger; + } + + /// + /// Runs this instance. + /// + public void Run() + { + if (_appHost.IsFirstRun) + { + LaunchStartupWizard(); + } + } + + /// + /// Launches the startup wizard. + /// + private void LaunchStartupWizard() + { + BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost); + } + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public void Dispose() + { + } + } +} \ No newline at end of file -- cgit v1.2.3