Class Computer
Facilitates various computer-related tasks such as CPU usage, memory utilization etc.
Inheritance
System.Object
Computer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Platform
Assembly: Azos.dll
Syntax
public static class Computer
Properties
CurrentAvailableMemoryMb
Returns current computer-wide RAM availability in mbytes
Declaration
public static int CurrentAvailableMemoryMb { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
CurrentProcessorUsagePct
Returns current computer-wide CPU utilization percentage
Declaration
public static int CurrentProcessorUsagePct { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsMono
Declaration
public static bool IsMono { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
OSFamily
Rsturns OS family for this computer: Linux vs Win vs Mac
Declaration
public static OSFamily OSFamily { get; }
Property Value
Type | Description |
---|---|
OSFamily |
UniqueNetworkSignature
Returns network signature for this machine which is unique in the eclosing network segment (MAC-based)
Declaration
public static string UniqueNetworkSignature { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetMemoryStatus()
Declaration
public static MemoryStatus GetMemoryStatus()
Returns
Type | Description |
---|---|
MemoryStatus |