HMT 1.0.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package HMT --version 1.0.0.2
                    
NuGet\Install-Package HMT -Version 1.0.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HMT" Version="1.0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HMT" Version="1.0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="HMT" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HMT --version 1.0.0.2
                    
#r "nuget: HMT, 1.0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=HMT&version=1.0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=HMT&version=1.0.0.2
                    
Install as a Cake Tool

It is an administrative toolkit that provides easy access to computer hardware.

Access to hardware is designed for Windows platforms.

Linux support will be provided in the future.

Install

Package Manager

PM> Install-Package HMT

.NET CLI

> dotnet add package HMT

PackageReferance

<PackageReference Include="HMT" Version="1.0.0.2" />

Usage

HardwareMonitor.cs

namespace ConsoleApp
{
    using HMT.Hardware;
	
	/// <summary>
    /// Hardware Monitor Example
    /// </summary>
    class HardwareMonitor
    {
        static void Main(string[] args)
        {
            // actual
            Printer hardware;

            // Initalize Test
            hardware = new Printer();

            // Hardware List 
            foreach (var item in hardware.Finder.GetHardwares())
            {
                System.Console.WriteLine($"Name : {item.Name}");

                // Print Hardware Property List
                foreach (var property in item.Properties)
                {
                    if (property.Value != null)
                        System.Console.WriteLine($"{property.Name}\t|{property.Value}");
                }
            }

            // Wait Key
            System.Console.ReadKey();
        }
    }
}

Try

HardwareWatcher.cs


namespace ConsoleApp{

    using HMT;
    using HMT.Hardware;

    /// <summary>
    /// Hardware Watcher Example
    /// </summary>
    class HardwareWatcher
    {
        public void Main(string[] args)
        {
            // actual
            Printer hardware;

            // Initalize Test
            hardware = new Printer();

            // Hardware Watcher Event
            hardware
                .Watcher
                .Signal += Watcher_Signal;

            // Hardware Watcher Start
            hardware
                .Watcher
                .Watch();
        }

        /// <summary>
        /// Hardware Event Signal
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Watcher_Signal(object sender, HardwareEvent e)
        {
            // Hardware Event Data
            System.Console.WriteLine(e);
        }
    }
}

Pipeline

Build Status

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 784 9/19/2019
1.0.1 624 7/18/2019
1.0.0.9 632 7/16/2019
1.0.0.8 634 7/15/2019
1.0.0.7 610 7/15/2019
1.0.0.6 640 7/15/2019
1.0.0.5 620 7/14/2019
1.0.0.4 645 7/14/2019
1.0.0.3 640 7/14/2019
1.0.0.2 608 7/13/2019
1.0.0.1 652 7/13/2019
1.0.0 630 7/13/2019

HMT 1.0.0.1 Hardware Watcher Add