DevZest.Licensing by DevZest

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

 LicensePublisher

public abstract class LicensePublisher : ILicensePublisher
Publishes signed licenses to LicenseClient.
protected LicensePublisher()

Initializes a new instance of the LicensePublisher class that caches the private key.

protected LicensePublisher(bool cachePrivateKey)

Initializes a new instance of the LicensePublisher class, given a value indicating whether the private key should be cached.

public static string PrivateKeyXmlFromSnkFile(string snkFilePath)

Gets the private key XML string from Strong Name Key (.snk) file.

public static string PrivateKeyXmlFromSnkFile(Stream stream)

Gets the private key XML string from Strong Name Key (.snk) stream.

protected abstract LicensePublisherResponse GetLicense(CultureInfo cultureInfo, string product, Version version, LicenseKey licenseKey, string category, string name, string company, string email, string data)

Gets the requested license.

protected abstract string GetPrivateKeyXml(string product)

Gets the private key XML string for the specified product.

public string Publish(int culture, string product, string version, string encryptedLicenseKey, string category, string name, string company, string email, string data)

Gets the requested license.