C# Class NZBDash.Core.Services.WindowsHardwareService

Inheritance: IHardwareService
Mostrar archivo Open project: NZBDash/NZBDash

Public Methods

Method 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

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

Method Details

GetAllNics() public method

public GetAllNics ( ) : int>.Dictionary
return int>.Dictionary

GetAvailableRam() public method

Gets the available ram.
public GetAvailableRam ( ) : float
return float

GetCpuPercentage() public method

Gets the cpu percentage of the current PC.
public GetCpuPercentage ( ) : float
return float

GetDrives() public method

Gets the drives.
public GetDrives ( ) : IEnumerable
return IEnumerable

GetNetworkInformation() public method

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

GetRam() public method

Gets the ram.
public GetRam ( ) : RamModel
return NZBDash.UI.Models.Hardware.RamModel

GetUpTime() public method

Gets up time of the current PC.
public GetUpTime ( ) : System.TimeSpan
return System.TimeSpan