C# SDK
Official C# SDK for Keymint with full async/await support. Integrate concurrent licensing and machine fingerprint binding into .NET applications.
Installation
dotnet add package KeyMintTargets .NET 8 and .NET 9 (net8.0, net9.0). It does not target .NET Standard, so .NET Framework and Unity projects can't reference it.
Quick Start
using KeyMint.Services;
var admin = new KeyMintSDK("YOUR_ADMIN_API_KEY");
var client = new KeyMintSDK("YOUR_CLIENT_API_KEY");
// Create a key with authorized hosts
var createResult = await admin.CreateKey(new CreateKeyParams {
ProductId = "YOUR_PRODUCT_ID",
AllowedHosts = new List<string> { "machine-a", "machine-b" }
});
// Activate a license
var result = await client.ActivateKey(new ActivateKeyParams {
ProductId = "YOUR_PRODUCT_ID",
LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX",
HostId = "machine-a"
});
if (result.IsSuccess) {
Console.WriteLine(result.Data.Message); // "License valid"
}Use client keys for activation/deactivation/floating sessions. Use admin keys for create/update/block/unblock/sign/delete and customer management. Use read-only or admin keys for detailed key lookup. Any key carrying the matching grant (license:activate, license:manage, license:sign, license:delete, license:read, customer:read/write) works on any scope — see key permissions in the dashboard.