tgstation-server 6.0.1
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 public interface IProcessBase
10 {
14 Task<int?> Lifetime { get; }
15
20 void AdjustPriority(bool higher);
21
26
31
38 ValueTask CreateDump(string outputFile, CancellationToken cancellationToken);
39 }
40}
Represents process lifetime.
Definition: IProcessBase.cs:10
ValueTask CreateDump(string outputFile, CancellationToken cancellationToken)
Create a dump file of the process.
void SuspendProcess()
Suspends the process.
void ResumeProcess()
Resumes the process.
void AdjustPriority(bool higher)
Set's the owned global::System.Diagnostics.Process.PriorityClass to a non-normal value.
Task< int?> Lifetime
The Task<TResult> resulting in the exit code of the process or null if the process was detached.
Definition: IProcessBase.cs:14