aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Diagnostics/IProcessManager.cs
blob: 2e076bd882a4edbb8891ee0fa8ad2cb8fc074794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
    }
}