C# Class NZBDash.Core.Services.WindowsHardwareService

Inheritance: IHardwareService
Afficher le fichier Open project: NZBDash/NZBDash

Méthodes publiques

Méthode Description
GetAllNics ( ) : int>.Dictionary
GetAvailableRam ( ) : float

Gets the available ram.

GetCpuPercentage ( ) : float

Gets the cpu percentage of the current PC.

GetDrives ( ) : IEnumerable

Gets the drives.

GetNetworkInformation ( int nicId ) : NetworkInfo

Gets the network information.

GetRam ( ) : RamModel

Gets the ram.

GetUpTime ( ) : System.TimeSpan

Gets up time of the current PC.

Private Methods

Méthode Description
GetDriveInfo ( ) : System.IO.DriveInfo[]
GetNetworkingDetails ( int nicId ) : NetworkInfo
GetRamInfo ( ) : Microsoft.VisualBasic.Devices.ComputerInfo

Method Details

GetAllNics() public méthode

public GetAllNics ( ) : int>.Dictionary
Résultat int>.Dictionary

GetAvailableRam() public méthode

Gets the available ram.
public GetAvailableRam ( ) : float
Résultat float

GetCpuPercentage() public méthode

Gets the cpu percentage of the current PC.
public GetCpuPercentage ( ) : float
Résultat float

GetDrives() public méthode

Gets the drives.
public GetDrives ( ) : IEnumerable
Résultat IEnumerable

GetNetworkInformation() public méthode

Gets the network information.
public GetNetworkInformation ( int nicId ) : NetworkInfo
nicId int
Résultat NZBDash.DataAccess.Api.NetworkInfo

GetRam() public méthode

Gets the ram.
public GetRam ( ) : RamModel
Résultat NZBDash.UI.Models.Hardware.RamModel

GetUpTime() public méthode

Gets up time of the current PC.
public GetUpTime ( ) : System.TimeSpan
Résultat System.TimeSpan