ProcessLimits Class

Represents the cross-platform process limits that can be applied by ProcessWrapper.

public sealed class ProcessLimits

Constructors

NameDescription
ProcessLimits()

ProcessLimits()

public ProcessLimits()

No documentation is available.

Properties

NameDescription
CpuPercentageGets or sets the maximum CPU usage in percentage between 1 and 100.
MemoryLimitInBytesGets or sets the maximum memory usage in bytes.
ProcessCountLimitGets or sets the maximum number of processes allowed in the process group.

CpuPercentage

ProcessLimits.cs

Gets or sets the maximum CPU usage in percentage between 1 and 100.

public int? CpuPercentage { get; set; }

Property value

int?

MemoryLimitInBytes

ProcessLimits.cs

Gets or sets the maximum memory usage in bytes.

public long? MemoryLimitInBytes { get; set; }

Property value

long?

ProcessCountLimit

ProcessLimits.cs

Gets or sets the maximum number of processes allowed in the process group.

public int? ProcessCountLimit { get; set; }

Property value

int?