Interface IProcessContainer
- Namespace
- Utils.Reflection.ProcessIsolation
- Assembly
- Utils.Reflection.dll
Defines a reusable process container capable of launching child processes with additional isolation constraints.
public interface IProcessContainer : IDisposable
- Inherited Members
- Extension Methods
Methods
GrantDirectoryReadAccess(string)
Grants read access to a directory when the underlying container supports ACL tuning. On unsupported platforms this method is a no-op.
void GrantDirectoryReadAccess(string directoryPath)
Parameters
directoryPathstringDirectory that should become readable for the child process.
StartProcess(string, IEnumerable<string>)
Starts a process inside the current container implementation.
Process StartProcess(string executablePath, IEnumerable<string> arguments)
Parameters
executablePathstringAbsolute path of the executable to run.
argumentsIEnumerable<string>Ordered list of command-line arguments.
Returns
- Process
The started process instance.
TryGetSecurityIdentifier(out SecurityIdentifier?)
Returns the security identifier used for IPC ACL hardening when available.
bool TryGetSecurityIdentifier(out SecurityIdentifier? securityIdentifier)
Parameters
securityIdentifierSecurityIdentifierResolved security identifier.