SplatDev.Licensing.Tenant 1.1.12

There is a newer version of this package available.
See the version list below for details.
dotnet add package SplatDev.Licensing.Tenant --version 1.1.12                
NuGet\Install-Package SplatDev.Licensing.Tenant -Version 1.1.12                
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.Tenant" Version="1.1.12" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SplatDev.Licensing.Tenant --version 1.1.12                
#r "nuget: SplatDev.Licensing.Tenant, 1.1.12"                
#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.
// Install SplatDev.Licensing.Tenant as a Cake Addin
#addin nuget:?package=SplatDev.Licensing.Tenant&version=1.1.12

// Install SplatDev.Licensing.Tenant as a Cake Tool
#tool nuget:?package=SplatDev.Licensing.Tenant&version=1.1.12                

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.1.14 109 7/16/2024
1.1.13 94 6/19/2024
1.1.12 86 6/19/2024
1.1.11 118 6/16/2024