DevZest.Licensing by DevZest

<PackageReference Include="DevZest.Licensing" Version="2.0.0" />

 LicenseManager

public sealed class LicenseManager
Provides static methods to get license from an assembly, determine if a valid license can be granted to an assembly, or reset license providers of an assembly.
public static LicenseError Check(string licenseItemName)

Determines whether a runtime license can be granted for the specified license item name of executing assembly.

public static LicenseError Check(string licenseItemName, Type type)

Determines whether a runtime license can be granted for the specified license item name of the assembly containing specified type.

public static LicenseError Check(string licenseItemName, Assembly assembly)

Determines whether a runtime license can be granted for the specified license item name of the specified assembly.

public static LicenseError Check(string licenseItemName, bool designMode)

Determines whether a license can be granted for the specified license item name of the executing assembly, given specified design time or runtime mode.

public static LicenseError Check(string licenseItemName, Type type, bool designMode)

Determines whether a license can be granted for the specified license item name of the assembly containing specified type, given specified design time or runtime mode.

public static LicenseError Check(string licenseItemName, Assembly assembly, bool designMode)

Determines whether a license can be granted for the specified license item name of the specified assembly, given specified design time or runtime mode.

public static License GetLicense()

Gets a license for executing assembly.

public static License GetLicense(bool designMode)

Gets a license for executing assembly, given specified design time or runtime mode.

public static License GetLicense(Type type, bool designMode)

Gets a license for assembly containing specified type, given specified design time or runtime mode.

public static License GetLicense(Assembly assembly, bool designMode)

Gets a license for specified assembly, given specified design time or runtime mode.

public static void Reset()

Resets the license providers for the executing assembly.

public static void Reset(Type type)

Resets the license providers for the assembly containing specified type.

public static void Reset(Assembly assembly)

Resets the license providers for specified assembly.

public static void Validate(string licenseItemName)

Determines whether a runtime license can be granted for the specified license item name of executing assembly.

public static void Validate(string licenseItemName, Type type)

Determines whether a runtime license can be granted for the specified license item name of the assembly containing specified type.

public static void Validate(string licenseItemName, Assembly assembly)

Determines whether a runtime license can be granted for the specified license item name of the specified assembly.

public static void Validate(string licenseItemName, bool designMode)

Determines whether a license can be granted for the specified license item name of the executing assembly, given specified design time or runtime mode.

public static void Validate(string licenseItemName, Type type, bool designMode)

Determines whether a license can be granted for the specified license item name of the assembly containing specified type, given specified design time or runtime mode.

public static void Validate(string licenseItemName, Assembly assembly, bool designMode)

Determines whether a license can be granted for the specified license item name of the specified assembly, given specified design time or runtime mode.