Table of Contents

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

directoryPath string

Directory 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

executablePath string

Absolute path of the executable to run.

arguments IEnumerable<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

securityIdentifier SecurityIdentifier

Resolved security identifier.

Returns

bool

true when a security identifier is available.