tgstation-server  4.4.0
The /tg/station 13 server suite
IProcessFeatures.cs
Go to the documentation of this file.
1 using System.Threading;
2 using System.Threading.Tasks;
3 
4 namespace Tgstation.Server.Host.System
5 {
9  interface IProcessFeatures
10  {
17  Task<string> GetExecutingUsername(global::System.Diagnostics.Process process, CancellationToken cancellationToken);
18 
23  void SuspendProcess(global::System.Diagnostics.Process process);
24 
29  void ResumeProcess(global::System.Diagnostics.Process process);
30 
38  Task CreateDump(global::System.Diagnostics.Process process, string outputFile, CancellationToken cancellationToken);
39  }
40 }
Abstraction for suspending and resuming processes.