tgstation-server 6.19.1
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 {
25 ValueTask<IProcess> LaunchProcess(
26 string fileName,
27 string workingDirectory,
28 string arguments,
29 CancellationToken cancellationToken,
30 IReadOnlyDictionary<string, string>? environment = null,
31 string? fileRedirect = null,
32 bool readStandardHandles = false,
33 bool noShellExecute = false,
34 bool doNotLogArguments = false);
35
41
48
55 }
56}
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, bool doNotLogArguments=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