ControlId.Net 0.9.0-alpha.1

This is a prerelease version of ControlId.Net.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ControlId.Net --version 0.9.0-alpha.1
                    
NuGet\Install-Package ControlId.Net -Version 0.9.0-alpha.1
                    
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="ControlId.Net" Version="0.9.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ControlId.Net" Version="0.9.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="ControlId.Net" />
                    
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 ControlId.Net --version 0.9.0-alpha.1
                    
#r "nuget: ControlId.Net, 0.9.0-alpha.1"
                    
#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.
#:package ControlId.Net@0.9.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ControlId.Net&version=0.9.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ControlId.Net&version=0.9.0-alpha.1&prerelease
                    
Install as a Cake Tool

ControlId.Net

An unofficial, fully typed .NET SDK for Control iD hardware: the access control line (iDAccess, iDFlex, iDFace, iDBox, iDUHF) and the REP iDClass time clocks, with an AFD parser for Portaria 671/2021.

SDK .NET não oficial e tipado para equipamentos Control iD: linha de acesso e REP iDClass, com parser de AFD da Portaria 671/2021. Guia completo em português.

Packages

Package Purpose
ControlId.Net AccessClient, RepClient, AFD parser, Push and Monitor models
ControlId.Net.DependencyInjection AddControlIdAccess / AddControlIdRep, many devices from appsettings.json
ControlId.Net.AspNetCore Push, Monitor and Online mode endpoints for ASP.NET Core (net8.0+), closed by default (Bearer token)
ControlId.Net.Push.EntityFrameworkCore Durable Push command queue on EF Core (net10.0)

Quick start

using ControlId.Access;

using var device = new AccessClient("http://192.168.0.129", "admin", "admin");

var id = await device.CreateUserAsync(new AccessUser { Name = "Maria", Registration = "1020" });
await device.OpenDoorAsync(door: 1);

var logs = await device.GetAccessLogsAsync(afterId: 0, limit: 100);
using ControlId.Rep;
using ControlId.Rep.Afd;

// TLS is validated: pin the fingerprint of the self-signed certificate
// (read it once with ControlIdCertificates.GetServerCertificateSha256Async).
using var rep = new RepClient("https://192.168.0.130", mode: RepMode.Portaria671,
    serverCertificateSha256: "AB:CD:EF:...");

AfdFile afd = await rep.GetAfdFileFromNsrAsync(1);
foreach (var punch in afd.Punches)
{
    Console.WriteLine($"{punch.Nsr} {punch.Time:yyyy-MM-dd HH:mm} {punch.EmployeeId}");
}
// ASP.NET Core: callbacks answer 401 without a token; write the same token to the device with ConfigureCallbackSecurityAsync.
builder.Services.AddControlIdMonitor<AccessLogHandler>();
app.MapControlIdMonitor().RequireControlIdToken(callbackToken);

Independent project, not affiliated with Control iD. "Control iD", "iDAccess", "iDFlex", "iDFace" and "iDClass" are trademarks of Control iD. Licensed under MIT.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ControlId.Net:

Package Downloads
ControlId.Net.DependencyInjection

Registro do ControlId.Net no IServiceCollection: AddControlIdAccess e AddControlIdRep, com vários equipamentos por nome, IHttpClientFactory e appsettings.

ControlId.Net.Push.EntityFrameworkCore

Fila de Push durável do ControlId.Net sobre o Entity Framework Core: guarda os comandos pendentes no banco de dados para sobreviverem a um reinício (IPushCommandStore).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0-alpha.1 55 11/20/2026
0.9.0-alpha.1 54 11/20/2026
0.8.0-alpha.1 100 11/14/2026
0.7.0-alpha.1 84 11/14/2026
0.6.0-alpha.1 99 11/13/2026
0.5.0-alpha.1 137 10/30/2026
0.4.3-alpha.1 75 10/30/2026
0.4.2-alpha.1 78 10/13/2026
0.4.1-alpha.1 69 10/13/2026
0.4.0-alpha.1 78 10/13/2026
0.3.0-alpha.1 68 10/13/2026
0.2.0-alpha.1 63 10/12/2026
0.1.0-alpha.2 70 10/11/2026
0.1.0-alpha.1 66 10/11/2026