SplatDev.Licensing.Tenant
1.1.11
See the version list below for details.
dotnet add package SplatDev.Licensing.Tenant --version 1.1.11
NuGet\Install-Package SplatDev.Licensing.Tenant -Version 1.1.11
<PackageReference Include="SplatDev.Licensing.Tenant" Version="1.1.11" />
paket add SplatDev.Licensing.Tenant --version 1.1.11
#r "nuget: SplatDev.Licensing.Tenant, 1.1.11"
// Install SplatDev.Licensing.Tenant as a Cake Addin #addin nuget:?package=SplatDev.Licensing.Tenant&version=1.1.11 // Install SplatDev.Licensing.Tenant as a Cake Tool #tool nuget:?package=SplatDev.Licensing.Tenant&version=1.1.11
Licensing Client Library for C#
This is the official client library for the Licensing API for C#.
Installation
via nuget
Install-Package SplatDev.Licensing.Client
Usage
Once installed, you can use the library to interact with the Licensing API.
SplatDev.Licensing.Client.NewLicenseAsync()
Example:
var response = await SplatDev.Licensing.Client.VerificationClient.NewLicenseAsync();
This method will connect to the API endpoint and generate a new license. The method returns a License
object.
Upon License creation, it must be stored in a secure location. The License
object contains the following properties:
{
"licenseId": 1,
"licenseKey": "YOUR LICENSE HERE",
"verifiedOn": "2024-01-01T00:00:00.0000000Z",
"isValid": true,
"inTrial": true,
"daysLeft": 29,
"isPurchased": false
}
In order to validate a license, use the following method:
ValidateLicenseAsync(string licenseKey)
ex:
var response = await SplatDev.Licensing.Client.VerificationClient.VerifyLicenseStatusAsync("Your License Key");
licenseKey
- The license key to validate.
This method will connect to the API endpoint and validate a license key. The method returns a License
object.
{
"licenseId": 1,
"licenseKey": "YOUR LICENSE HERE",
"verifiedOn": "2024-01-01T00:00:00.0000000Z",
"isValid": true,
"inTrial": true,
"daysLeft": 29,
"isPurchased": false
}
Once the trial is over, the isPurchased
property will be set to true
and the daysLeft
property will be set to 0
, if the users purchases the license.
Otherwise, the application will be locked and the isValid
property will be set to false
.
Notice
You must implement whatever logic in your application to block its use after the trial is over and no license is purchased.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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 was computed. 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. |
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.