GitHub - nefarius/Nefarius.Drivers.HidHide: Managed API for configuring HidHide. (original) (raw)

.NET Requirements Requirements Nuget Nuget

Managed API for configuring HidHide.

Documentation

Link to API docs.

Usage (classic)

Caution

This is the deprecated approach.

Create an instance of HidHideControlService whenever you need it.

This class will not block other configuration apps so you can keep it in memory as long as you need. A handle to the driver is only opened when necessary (when the properties are read from or the methods get invoked).

Usage (dependency injection)

Note

This is the recommended approach.

If you plan to make use of Microsoft Dependency Injection (in ASP.NET Core, Worker Services and alike) and the online services, your project also needs to add these NuGet packages:

You can skip them for the "traditional" use of version 1 of the library. Register it like:

builder.Services.AddHidHide();

Now you can inject and consume:

Check the demo app sources for implementation and usage details.

3rd party sources