Name Badge
Chat Join the chat at https://gitter.im/WildGums/Orc.SystemInfo
Downloads NuGet downloads
Stable version Version
Unstable version Pre-release version

Find the source at https://github.com/WildGums/Orc.SystemInfo

This library is used to retrieve the system information details from a computer.

Use the GetSystemInfo() method or the ISystemInfoService to get the system information details.

GetSystemInfo() returns an IEnumerable<SystemInfoElement>

public class SystemInfoElement
    public string Name { get; set; }
    public string Value { get; set; }

The following information will be retreived:

Using the service

Using the service is easy. Just resolve the service from the ServiceLocator or let it automatically be injected into your services or view model.

Resolving the service

If dependency injection is not used, the service can be retrieved using the following code:

var systemInfoService = ServiceLocator.Default.ResolveType<ISystemInfoService>();

Retrieving the system info

It’s best to gather the information on a thread that is not the UI thread. The examples below show how to do this.

Retrieving on the current thread

var systemInfo = systemInfoService.GetSystemInfo();

foreach (var systemInfoElement in systemInfo)
    // TODO: Deal with the system info

Retrieving on a separate thread

var systemInfo = await TaskHelper.Run(() => systemInfoService.GetSystemInfo(), true);

foreach (var systemInfoElement in systemInfo)
    // TODO: Deal with the system info

Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!