tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IProcessBase.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
5{
9 interface IProcessBase
10 {
14 Task<int> Lifetime { get; }
15
20 void AdjustPriority(bool higher);
21
25 void Suspend();
26
30 void Resume();
31
38 Task CreateDump(string outputFile, CancellationToken cancellationToken);
39 }
40}
Represents process lifetime.
Definition: IProcessBase.cs:10
Task< int > Lifetime
The Task<TResult> resulting in the exit code of the process.
Definition: IProcessBase.cs:14
void Suspend()
Suspends the process.
void Resume()
Resumes the process.
void AdjustPriority(bool higher)
Set's the owned global::System.Diagnostics.Process.PriorityClass to a non-normal value.
Task CreateDump(string outputFile, CancellationToken cancellationToken)
Create a dump file of the process.