diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-24 21:14:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-24 21:14:24 -0400 |
| commit | caebcf82c0c0c83dd77cd69051e9fc3a8b37b9ff (patch) | |
| tree | 51108fd6280f85ee7af1a9a52d9eeba609105f8f /MediaBrowser.Server.Startup.Common | |
| parent | e46c40faf2b14bd50ef4c32fdbd8685d0b1e0dfe (diff) | |
removed ProcessManager
Diffstat (limited to 'MediaBrowser.Server.Startup.Common')
4 files changed, 0 insertions, 33 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index db3b85e19..9a7f03341 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -381,8 +381,6 @@ namespace MediaBrowser.Server.Startup.Common RegisterSingleInstance(ServerConfigurationManager); - RegisterSingleInstance(NativeApp.GetProcessManager()); - LocalizationManager = new LocalizationManager(ServerConfigurationManager, FileSystemManager, JsonSerializer); RegisterSingleInstance(LocalizationManager); diff --git a/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs b/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs deleted file mode 100644 index d01756d0e..000000000 --- a/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MediaBrowser.Controller.Diagnostics; -using System.Diagnostics; - -namespace MediaBrowser.Server.Mono.Diagnostics -{ - public class ProcessManager : IProcessManager - { - public void SuspendProcess(Process process) - { - process.PriorityClass = ProcessPriorityClass.Idle; - } - - public void ResumeProcess(Process process) - { - process.PriorityClass = ProcessPriorityClass.Normal; - } - - public bool SupportsSuspension - { - get { return true; } - } - } -} diff --git a/MediaBrowser.Server.Startup.Common/INativeApp.cs b/MediaBrowser.Server.Startup.Common/INativeApp.cs index 1c4b5b1d5..2dbd844ba 100644 --- a/MediaBrowser.Server.Startup.Common/INativeApp.cs +++ b/MediaBrowser.Server.Startup.Common/INativeApp.cs @@ -1,5 +1,4 @@ using MediaBrowser.Common.Net; -using MediaBrowser.Controller.Diagnostics; using MediaBrowser.Model.Logging; using System.Collections.Generic; using System.Reflection; @@ -85,11 +84,5 @@ namespace MediaBrowser.Server.Startup.Common /// Prevents the system stand by. /// </summary> void PreventSystemStandby(); - - /// <summary> - /// Gets the process manager. - /// </summary> - /// <returns>IProcessManager.</returns> - IProcessManager GetProcessManager(); } } diff --git a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj index 625b29d36..38e07fde4 100644 --- a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj +++ b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj @@ -56,7 +56,6 @@ <Compile Include="ApplicationHost.cs" /> <Compile Include="ApplicationPathHelper.cs" /> <Compile Include="Browser\BrowserLauncher.cs" /> - <Compile Include="Diagnostics\ProcessManager.cs" /> <Compile Include="EntryPoints\KeepServerAwake.cs" /> <Compile Include="EntryPoints\StartupWizard.cs" /> <Compile Include="FFMpeg\FFMpegDownloader.cs" /> |
