C# Class GSF.Common

Defines common global functions.
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode 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 méthode

Gets the type of the currently executing application.
public static GetApplicationType ( ) : ApplicationType
Résultat ApplicationType

GetAvailablePhysicalMemory() public static méthode

Gets the available physical system memory.
public static GetAvailablePhysicalMemory ( ) : ulong
Résultat ulong

GetOSPlatformID() public static méthode

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

GetOSProductName() public static méthode

Gets the operating system product name.
public static GetOSProductName ( ) : string
Résultat string

GetProcessMemory() public static méthode

Gets the memory usage by the current process.
public static GetProcessMemory ( ) : long
Résultat long

GetTotalPhysicalMemory() public static méthode

Gets the total physical system memory.
public static GetTotalPhysicalMemory ( ) : ulong
Résultat ulong