Table of Contents

Interface IComponentDataFactory

Namespace
Tudormobile.IronLedgerLib
Assembly
Tudormobile.IronLedgerLib.dll

Defines a factory for creating component data from hardware components.

public interface IComponentDataFactory

Methods

Create()

Creates a new SystemComponentData by collecting data from all configured providers.

SystemComponentData Create()

Returns

SystemComponentData

A new SystemComponentData instance populated with data from all hardware components.

Exceptions

ComponentDataProviderException

Thrown when any of the configured providers fail to retrieve data.

GetDisks()

Gets disk component data.

IReadOnlyList<ComponentData> GetDisks()

Returns

IReadOnlyList<ComponentData>

A collection of disk component data.

Exceptions

ComponentDataProviderException

Thrown when the disk provider fails to retrieve data.

GetMemory()

Gets memory component data.

IReadOnlyList<ComponentData> GetMemory()

Returns

IReadOnlyList<ComponentData>

A collection of memory component data.

Exceptions

ComponentDataProviderException

Thrown when the memory provider fails to retrieve data.

GetProcessors()

Gets processor component data.

IReadOnlyList<ComponentData> GetProcessors()

Returns

IReadOnlyList<ComponentData>

A collection of processor component data.

Exceptions

ComponentDataProviderException

Thrown when the processor provider fails to retrieve data.

GetSystem()

Gets system component data.

ComponentData GetSystem()

Returns

ComponentData

System component data.

Exceptions

ComponentDataProviderException

Thrown when the system provider fails to retrieve data.