tgstation-server 6.9.2
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
19 long? MemoryUsage { get; }
20
25 void AdjustPriority(bool higher);
26
31
36
44 ValueTask CreateDump(string outputFile, bool minidump, CancellationToken cancellationToken);
45 }
46}
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.
long? MemoryUsage
Gets the process' memory usage in bytes.
ValueTask CreateDump(string outputFile, bool minidump, CancellationToken cancellationToken)
Create a dump file of the process.
Task< int?> Lifetime
The Task<TResult> resulting in the exit code of the process or null if the process was detached.