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
windowsContainerNamestringStable AppContainer name used on Windows.
windowsDisplayNamestringDisplay name for the Windows AppContainer profile.
windowsDescriptionstringDescription stored for the Windows AppContainer profile.
permissionsProcessContainerPermissions
Returns
- IProcessContainer
A process container when one can be provisioned; otherwise null so callers can gracefully fall back to a regular child process.