LicenseManager 1.0.0

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

// Install LicenseManager as a Cake Tool
#tool nuget:?package=LicenseManager&version=1.0.0

LicenseManager for WooCommerce .Net Library

A C# Library for the LicenseManager for WooCommerce formerly known as LicenseManager.at. This library makes it easy to activate or validate software licenses from .Net applications.

Code Examples

// Create a license manager (WordPress Host URL, Consumer API Key, Consumer API Secret)
var licenseManager = new("http://domain.com", "ck_3e68d6156f48ddb61b1748ca548f632b1d19d446", "cs_6a74509a3c4127bf19340ef873fd9349eca07g78");

// Activate a license key (this will increase the TimesActivated counter if successful)
var (success, errorMessage) = await _licenseManager.ActivateLicenseAsync(licenseKey, productId);

MessageBox.Show(success
                ? $"License {licenseKey} was successfully activated for product {productId}."
                : $"Something went wrong: {errorMessage}");
                
// Check if a license key is valid for a specific product
var (success, errorMessage) = await _licenseManager.ValidateLicenseAsync(licenseKey, productId);

MessageBox.Show(success
                ? $"License {licenseKey} was successfully validated for product {productId}."
                : $"Something went wrong: {errorMessage}");

Example WinForms Project

You can find an example project at https://github.com/g4m3r0/LicenseManager-for-WooCommerce-.Net-Library-Example.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows 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.

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
2.0.0 257 5/25/2023
1.0.7 327 1/16/2023
1.0.6 233 1/16/2023
1.0.5 260 12/22/2022
1.0.4 496 6/24/2022
1.0.3 387 6/21/2022
1.0.0 397 6/21/2022