|
Lean
$LEAN_TAG$
|
Operating systems class for managing anything that is operation system specific. More...
Static Public Member Functions | |
| static Dictionary< string, string > | GetServerStatistics () |
| Gets the statistics of the machine, including CPU% and RAM More... | |
| static void | Initialize () |
| Initializes the OS internal resources More... | |
| static void | Dispose () |
| Disposes of the OS internal resources More... | |
Static Public Attributes | |
| static bool | IsWindows => !IsLinux |
| Global Flag :: Operating System More... | |
| static string | PathSeparation => Path.DirectorySeparatorChar.ToStringInvariant() |
| Character Separating directories in this OS: More... | |
| static long | TotalPhysicalMemoryUsed => GC.GetTotalMemory(false) / (1024 * 1024) |
| Get the RAM used on the machine: More... | |
Properties | |
| static bool | IsLinux [get] |
| Global Flag :: Operating System More... | |
| static long | DriveSpaceRemaining [get] |
| Get the drive space remaining on windows and linux in MB More... | |
| static long | DriveSpaceUsed [get] |
| Get the drive space remaining on windows and linux in MB More... | |
| static long | DriveTotalSpace [get] |
| Total space on the drive More... | |
| static long | ApplicationMemoryUsed [get] |
| Gets the amount of private memory allocated for the current process (includes both managed and unmanaged memory). More... | |
| static decimal | CpuUsage [get] |
| Total CPU usage as a percentage More... | |
Operating systems class for managing anything that is operation system specific.
Good design should remove the need for this function. Over time it should disappear.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
|
staticget |