Table of Contents

Class ProcessContainerFactory

Namespace
Utils.Reflection.ProcessIsolation
Assembly
Utils.Reflection.dll

Builds process-container implementations based on the current operating system.

public static class ProcessContainerFactory
Inheritance
ProcessContainerFactory
Inherited Members

Methods

TryCreate(string, string, string, ProcessContainerPermissions?)

Creates the most restrictive container available on the current machine.

public static IProcessContainer? TryCreate(string windowsContainerName, string windowsDisplayName, string windowsDescription, ProcessContainerPermissions? permissions = null)

Parameters

windowsContainerName string

Stable AppContainer name used on Windows.

windowsDisplayName string

Display name for the Windows AppContainer profile.

windowsDescription string

Description stored for the Windows AppContainer profile.

permissions ProcessContainerPermissions

Returns

IProcessContainer

A process container when one can be provisioned; otherwise null so callers can gracefully fall back to a regular child process.