tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IProcessExecutor.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Threading;
3using System.Threading.Tasks;
4
6{
11 {
24 ValueTask<IProcess> LaunchProcess(
25 string fileName,
26 string workingDirectory,
27 string arguments,
28 CancellationToken cancellationToken,
29 IReadOnlyDictionary<string, string>? environment = null,
30 string? fileRedirect = null,
31 bool readStandardHandles = false,
32 bool noShellExecute = false);
33
39
46
53 }
54}
ValueTask< IProcess > LaunchProcess(string fileName, string workingDirectory, string arguments, CancellationToken cancellationToken, IReadOnlyDictionary< string, string >? environment=null, string? fileRedirect=null, bool readStandardHandles=false, bool noShellExecute=false)
Launch a IProcess.
IProcess GetCurrentProcess()
Get a IProcess representing the running executable.
IProcess? GetProcess(int id)
Get a IProcess by id .
IProcess? GetProcessByName(string name)
Get a IProcess with a given name .
Abstraction over a global::System.Diagnostics.Process.
Definition IProcess.cs:11