SplatDev.Licensing.Client 1.0.0

dotnet add package SplatDev.Licensing.Client --version 1.0.0
                    
NuGet\Install-Package SplatDev.Licensing.Client -Version 1.0.0
                    
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="SplatDev.Licensing.Client" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Licensing.Client" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Licensing.Client" />
                    
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 SplatDev.Licensing.Client --version 1.0.0
                    
#r "nuget: SplatDev.Licensing.Client, 1.0.0"
                    
#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 SplatDev.Licensing.Client@1.0.0
                    
#: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=SplatDev.Licensing.Client&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Licensing.Client&version=1.0.0
                    
Install as a Cake Tool

SplatDev.Licensing.Client

Official C# SDK for the SplatDev LicenseTree licensing platform.
Embed license validation, activation, and portal access in any .NET 8+ application.

Installation

dotnet add package SplatDev.Licensing.Client

Quick start — validation only (no auth required)

using SplatDev.Licensing.Client;

var http = new HttpClient { BaseAddress = new Uri("https://api.yourdomain.com/") };
var client = new LicensingClient(http);

var result = await client.ValidateLicenseAsync("XXXX-XXXX-XXXX-XXXX");
if (!result.IsValid)
    throw new Exception($"License invalid: {result.ErrorMessage}");
// Program.cs
builder.Services.AddLicensingClient(options =>
{
    options.BaseUrl = "https://api.yourdomain.com";
    options.ApiKey  = builder.Configuration["Licensing:ApiKey"];
});

// Or bind from appsettings.json ("LicensingClient" section):
builder.Services.AddLicensingClient(builder.Configuration);
// appsettings.json
{
  "LicensingClient": {
    "BaseUrl": "https://api.yourdomain.com",
    "ApiKey":  "your-api-key-here"
  }
}

Then inject LicensingClient directly:

public class MyService(LicensingClient licensing)
{
    public async Task ActivateAsync(string key, string machineId)
    {
        var result = await licensing.ActivateLicenseAsync(key, machineId);
        if (!result.Success)
            throw new Exception(result.ErrorMessage);
    }
}

Floating licenses (concurrent seats)

// Check out a seat
var checkout = await client.CheckoutFloatingLicenseAsync(licenseId, "user@company.com");

// Send heartbeats on a timer to keep the seat alive
await client.HeartbeatFloatingLicenseAsync(checkout.CheckoutId!.Value);

// Release the seat when done
await client.CheckinFloatingLicenseAsync(checkout.CheckoutId!.Value);

License pools

// List available pools
var pools = await client.GetLicensePoolsAsync();

// Draw a license from a pool
var draw = await client.DrawFromPoolAsync(poolId: pools.Items[0].Id);
Console.WriteLine(draw.LicenseKey);

// Return the license when done
await client.ReturnToPoolAsync(draw.LicenseId!.Value);

Supported operations

Method Auth Description
ValidateLicenseAsync None Check if a key is valid without consuming a seat
ActivateLicenseAsync None Activate a key on a device
DeactivateLicenseAsync API key Remove an activation
GetLicensesAsync API key List customer licenses
GetLicenseAsync API key Get a single license
GetFloatingLicensesAsync API key List floating licenses
CheckoutFloatingLicenseAsync API key Reserve a concurrent seat
HeartbeatFloatingLicenseAsync API key Keep a seat alive
CheckinFloatingLicenseAsync API key Release a seat
GetLicensePoolsAsync API key List license pools
DrawFromPoolAsync API key Draw a license from a pool
ReturnToPoolAsync API key Return a pool license
LoginAsync Credentials Exchange credentials for JWT

Target frameworks

net8.0 · net9.0 · net10.0

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 90 4/27/2026