diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-11 00:43:57 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-11 00:43:57 -0500 |
| commit | 68b3ca63837e572756e6670547ea2e27d995cbe3 (patch) | |
| tree | bc9629a21e7ed9779b5cf04474732962bb9e789b /MediaBrowser.Server.Startup.Common | |
| parent | b3f22fd05237e589d79e3f06de7e5db27effcc93 (diff) | |
update core project
Diffstat (limited to 'MediaBrowser.Server.Startup.Common')
3 files changed, 0 insertions, 136 deletions
diff --git a/MediaBrowser.Server.Startup.Common/Browser/BrowserLauncher.cs b/MediaBrowser.Server.Startup.Common/Browser/BrowserLauncher.cs deleted file mode 100644 index 1a0e2d9731..0000000000 --- a/MediaBrowser.Server.Startup.Common/Browser/BrowserLauncher.cs +++ /dev/null @@ -1,75 +0,0 @@ -using MediaBrowser.Controller; -using System; - -namespace MediaBrowser.Server.Startup.Common.Browser -{ - /// <summary> - /// Class BrowserLauncher - /// </summary> - public static class BrowserLauncher - { - /// <summary> - /// Opens the dashboard page. - /// </summary> - /// <param name="page">The page.</param> - /// <param name="appHost">The app host.</param> - public static void OpenDashboardPage(string page, IServerApplicationHost appHost) - { - var url = appHost.GetLocalApiUrl("localhost") + "/web/" + page; - - OpenUrl(appHost, url); - } - - /// <summary> - /// Opens the community. - /// </summary> - public static void OpenCommunity(IServerApplicationHost appHost) - { - OpenUrl(appHost, "http://emby.media/community"); - } - - public static void OpenEmbyPremiere(IServerApplicationHost appHost) - { - OpenDashboardPage("supporterkey.html", appHost); - } - - /// <summary> - /// Opens the web client. - /// </summary> - /// <param name="appHost">The app host.</param> - public static void OpenWebClient(IServerApplicationHost appHost) - { - OpenDashboardPage("index.html", appHost); - } - - /// <summary> - /// Opens the dashboard. - /// </summary> - /// <param name="appHost">The app host.</param> - public static void OpenDashboard(IServerApplicationHost appHost) - { - OpenDashboardPage("dashboard.html", appHost); - } - - /// <summary> - /// Opens the URL. - /// </summary> - /// <param name="url">The URL.</param> - private static void OpenUrl(IServerApplicationHost appHost, string url) - { - try - { - appHost.LaunchUrl(url); - } - catch (NotImplementedException) - { - - } - catch (Exception ex) - { - Console.WriteLine("Error launching url: " + url); - Console.WriteLine(ex.Message); - } - } - } -} diff --git a/MediaBrowser.Server.Startup.Common/EntryPoints/StartupWizard.cs b/MediaBrowser.Server.Startup.Common/EntryPoints/StartupWizard.cs deleted file mode 100644 index f9d173c595..0000000000 --- a/MediaBrowser.Server.Startup.Common/EntryPoints/StartupWizard.cs +++ /dev/null @@ -1,59 +0,0 @@ -using MediaBrowser.Controller; -using MediaBrowser.Controller.Plugins; -using MediaBrowser.Model.Logging; -using MediaBrowser.Server.Startup.Common.Browser; - -namespace MediaBrowser.Server.Startup.Common.EntryPoints -{ - /// <summary> - /// Class StartupWizard - /// </summary> - public class StartupWizard : IServerEntryPoint - { - /// <summary> - /// The _app host - /// </summary> - private readonly IServerApplicationHost _appHost; - /// <summary> - /// The _user manager - /// </summary> - private readonly ILogger _logger; - - /// <summary> - /// Initializes a new instance of the <see cref="StartupWizard" /> class. - /// </summary> - /// <param name="appHost">The app host.</param> - /// <param name="logger">The logger.</param> - public StartupWizard(IServerApplicationHost appHost, ILogger logger) - { - _appHost = appHost; - _logger = logger; - } - - /// <summary> - /// Runs this instance. - /// </summary> - public void Run() - { - if (_appHost.IsFirstRun) - { - LaunchStartupWizard(); - } - } - - /// <summary> - /// Launches the startup wizard. - /// </summary> - private void LaunchStartupWizard() - { - BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost); - } - - /// <summary> - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - /// </summary> - public void Dispose() - { - } - } -}
\ No newline at end of file diff --git a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj index f5f5610650..7d6df52c20 100644 --- a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj +++ b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj @@ -96,11 +96,9 @@ <Compile Include="Activity\ActivityRepository.cs" /> <Compile Include="ApplicationHost.cs" /> <Compile Include="ApplicationPathHelper.cs" /> - <Compile Include="Browser\BrowserLauncher.cs" /> <Compile Include="Configuration\ServerConfigurationManager.cs" /> <Compile Include="Devices\DeviceRepository.cs" /> <Compile Include="EntryPoints\ExternalPortForwarding.cs" /> - <Compile Include="EntryPoints\StartupWizard.cs" /> <Compile Include="FFMpeg\FFMpegLoader.cs" /> <Compile Include="FFMpeg\FFMpegInstallInfo.cs" /> <Compile Include="FFMpeg\FFMpegInfo.cs" /> |
