C# Class GSF.Common

Defines common global functions.
Mostrar archivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
GetApplicationType ( ) : ApplicationType

Gets the type of the currently executing application.

GetAvailablePhysicalMemory ( ) : ulong

Gets the available physical system memory.

GetOSPlatformID ( ) : PlatformID

Gets the operating system PlatformID

This function will properly detect the platform ID, even if running on Mac.

GetOSProductName ( ) : string

Gets the operating system product name.

GetProcessMemory ( ) : long

Gets the memory usage by the current process.

GetTotalPhysicalMemory ( ) : ulong

Gets the total physical system memory.

Method Details

GetApplicationType() public static method

Gets the type of the currently executing application.
public static GetApplicationType ( ) : ApplicationType
return ApplicationType

GetAvailablePhysicalMemory() public static method

Gets the available physical system memory.
public static GetAvailablePhysicalMemory ( ) : ulong
return ulong

GetOSPlatformID() public static method

Gets the operating system PlatformID
This function will properly detect the platform ID, even if running on Mac.
public static GetOSPlatformID ( ) : PlatformID
return PlatformID

GetOSProductName() public static method

Gets the operating system product name.
public static GetOSProductName ( ) : string
return string

GetProcessMemory() public static method

Gets the memory usage by the current process.
public static GetProcessMemory ( ) : long
return long

GetTotalPhysicalMemory() public static method

Gets the total physical system memory.
public static GetTotalPhysicalMemory ( ) : ulong
return ulong