aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Diagnostics/IProcessManager.cs28
-rw-r--r--MediaBrowser.Controller/MediaBrowser.Controller.csproj1
2 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Diagnostics/IProcessManager.cs b/MediaBrowser.Controller/Diagnostics/IProcessManager.cs
new file mode 100644
index 0000000000..2e076bd882
--- /dev/null
+++ b/MediaBrowser.Controller/Diagnostics/IProcessManager.cs
@@ -0,0 +1,28 @@
+using System.Diagnostics;
+
+namespace MediaBrowser.Controller.Diagnostics
+{
+ /// <summary>
+ /// Interface IProcessManager
+ /// </summary>
+ public interface IProcessManager
+ {
+ /// <summary>
+ /// Gets a value indicating whether [supports suspension].
+ /// </summary>
+ /// <value><c>true</c> if [supports suspension]; otherwise, <c>false</c>.</value>
+ bool SupportsSuspension { get; }
+
+ /// <summary>
+ /// Suspends the process.
+ /// </summary>
+ /// <param name="process">The process.</param>
+ void SuspendProcess(Process process);
+
+ /// <summary>
+ /// Resumes the process.
+ /// </summary>
+ /// <param name="process">The process.</param>
+ void ResumeProcess(Process process);
+ }
+}
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
index 603cb02e0d..36809c5d38 100644
--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj
+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
@@ -104,6 +104,7 @@
<Compile Include="Devices\CameraImageUploadInfo.cs" />
<Compile Include="Devices\IDeviceManager.cs" />
<Compile Include="Devices\IDeviceRepository.cs" />
+ <Compile Include="Diagnostics\IProcessManager.cs" />
<Compile Include="Dlna\ControlRequest.cs" />
<Compile Include="Dlna\ControlResponse.cs" />
<Compile Include="Dlna\EventSubscriptionResponse.cs" />