HMT 1.0.0.2
There is a newer version of this package available.
See the version list below for details.
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.
paket add HMT --version 1.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
// Install HMT as a Cake Addin #addin nuget:?package=HMT&version=1.0.0.2 // Install HMT as a Cake Tool #tool nuget:?package=HMT&version=1.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Product | Versions 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.
HMT 1.0.0.1 Hardware Watcher Add