tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IProcess.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
6{
11 {
15 int Id { get; }
16
20 Task Startup { get; }
21
31 Task<string> GetCombinedOutput(CancellationToken cancellationToken);
32
37 void Terminate();
38
44 Task<string> GetExecutingUsername(CancellationToken cancellationToken);
45 }
46}
Represents process lifetime.
Definition: IProcessBase.cs:10
Abstraction over a global::System.Diagnostics.Process.
Definition: IProcess.cs:11
Task Startup
The Task representing the time until the IProcess becomes "idle".
Definition: IProcess.cs:20
Task< string > GetCombinedOutput(CancellationToken cancellationToken)
Get the stderr and stdout output of the IProcess.
void Terminate()
Asycnhronously terminates the process.
Task< string > GetExecutingUsername(CancellationToken cancellationToken)
Get the name of the account executing the IProcess.