ControlId.Net.DependencyInjection
0.10.0-alpha.1
dotnet add package ControlId.Net.DependencyInjection --version 0.10.0-alpha.1
NuGet\Install-Package ControlId.Net.DependencyInjection -Version 0.10.0-alpha.1
<PackageReference Include="ControlId.Net.DependencyInjection" Version="0.10.0-alpha.1" />
<PackageVersion Include="ControlId.Net.DependencyInjection" Version="0.10.0-alpha.1" />
<PackageReference Include="ControlId.Net.DependencyInjection" />
paket add ControlId.Net.DependencyInjection --version 0.10.0-alpha.1
#r "nuget: ControlId.Net.DependencyInjection, 0.10.0-alpha.1"
#:package ControlId.Net.DependencyInjection@0.10.0-alpha.1
#addin nuget:?package=ControlId.Net.DependencyInjection&version=0.10.0-alpha.1&prerelease
#tool nuget:?package=ControlId.Net.DependencyInjection&version=0.10.0-alpha.1&prerelease
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);
Links
- Project page, architecture and roadmap
- Usage guide (Portuguese)
- API coverage matrix
- Changelog, including breaking changes and how to migrate
- Security notes
Independent project, not affiliated with Control iD. "Control iD", "iDAccess", "iDFlex", "iDFace" and "iDClass" are trademarks of Control iD. Licensed under MIT.
| Product | Versions 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. |
-
.NETStandard 2.0
- ControlId.Net (>= 0.10.0-alpha.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.15)
-
net8.0
- ControlId.Net (>= 0.10.0-alpha.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ControlId.Net.DependencyInjection:
| Package | Downloads |
|---|---|
|
ControlId.Net.AspNetCore
Integração do ControlId.Net com ASP.NET Core: rotas prontas para o modo Push e o Monitor dos equipamentos Control iD (MapControlIdPush, MapControlIdMonitor). Inclui o ControlId.Net.DependencyInjection. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.10.0-alpha.1 | 51 | 11/20/2026 |
| 0.9.0-alpha.1 | 46 | 11/20/2026 |
| 0.8.0-alpha.1 | 86 | 11/14/2026 |
| 0.7.0-alpha.1 | 73 | 11/14/2026 |
| 0.6.0-alpha.1 | 95 | 11/13/2026 |
| 0.5.0-alpha.1 | 133 | 10/30/2026 |
| 0.4.3-alpha.1 | 74 | 10/30/2026 |
| 0.4.2-alpha.1 | 64 | 10/13/2026 |
| 0.4.1-alpha.1 | 60 | 10/13/2026 |
| 0.4.0-alpha.1 | 72 | 10/13/2026 |
| 0.3.0-alpha.1 | 62 | 10/13/2026 |
| 0.2.0-alpha.1 | 67 | 10/12/2026 |
| 0.1.0-alpha.2 | 71 | 10/11/2026 |
| 0.1.0-alpha.1 | 69 | 10/11/2026 |