Table of Contents

Class SystemInfo

Namespace
VpnHood.Core.Server.SystemInformation
Assembly
VpnHood.Core.Server.dll

Represents a server machine's information: its OS, memory and processors.

public class SystemInfo
Inheritance
SystemInfo
Inherited Members

Properties

AvailableMemory

Gets the memory available now, in bytes, as the provider reads it, or null where it reads none; a provider may give 0 where its reading failed.

public required long? AvailableMemory { get; init; }

Property Value

long?

CpuUsage

Gets the processors' use, in percent, as the provider samples it, or null where it samples none; a provider may give 0 where its reading failed.

public required int? CpuUsage { get; init; }

Property Value

int?

LogicalCoreCount

Gets the number of logical processors.

public required int LogicalCoreCount { get; init; }

Property Value

int

OsInfo

Gets the OS's description, as the provider gives it.

public required string OsInfo { get; init; }

Property Value

string

TotalMemory

Gets the machine's memory in all, in bytes, as the provider reads it, or null where it reads none; a provider may give 0 where its reading failed.

public required long? TotalMemory { get; init; }

Property Value

long?

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Remarks

It is the OS, the memory in all and the logical processors.