using MediaBrowser.Controller; using MediaBrowser.Controller.Plugins; using MediaBrowser.Model.Logging; using MediaBrowser.Server.Startup.Common.Browser; namespace MediaBrowser.Server.Startup.Common.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, _logger); } /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// public void Dispose() { } } }