Skip to content

IHostEnvironmentStatistics Properties

Functionality for accessing statistics relating to the hosting environment.

AvailableMemory

abstractget
public abstract long? AvailableMemory
Gets the total memory available for allocation on the host in bytes.

Examples

14426476000L for 14 GB.

CpuUsage

abstractget
public abstract float? CpuUsage
Gets the host CPU usage from 0.0-100.0.

Examples

70.0f for 70% CPU usage.

TotalPhysicalMemory

abstractget
public abstract long? TotalPhysicalMemory
Gets the total physical memory on the host in bytes.

Examples

16426476000L for 16 GB.