DevZest.Licensing by DevZest

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

 License

public abstract class License : Freezable<LicenseProviderAttribute>
Provides the abstract base class for all licenses. A license is granted to an assembly signed with a strong name.
protected Assembly Assembly { get; }

Gets the assembly this license is granted to.

public string Category { get; set; }

Gets or sets the license category information.

public string Company { get; set; }

Gets or sets product company information.

public string Data { get; set; }

Gets or sets the data that the validation is performed against.

public string Expiration { get; set; }

Gets or sets the expiration date, as string, of this license.

public DateTime ExpirationDate { get; }

Gets the expiration date of this license.

public string Id { get; set; }

Gets or sets the license ID information.

public bool IsExpired { get; }

Gets a value indicating whether this license is expired.

public LicenseItem this[string name] { get; }

Gets the LicenseItem object for specified name.

public LicenseItemCollection Items { get; }

Gets a collection of LicenseItem objects.

public string Product { get; set; }

Gets or sets product name information.

Gets the license provider which provides this license. License providers are declared as assembly level attributes.

public object ProviderData { get; }

Gets the data set by the license provider.

public string SignedString { get; }

Gets or sets the XAML string that can be converted from/to this License object, signed by the assembly private key.

public string UpgradeExpiration { get; set; }

Gets or sets the upgrade expiration date, as string, of this license.

Gets the upgrade expiration date of this license.

public string UserCompany { get; set; }

Gets or sets the user company information.

public string UserName { get; set; }

Gets or sets the user name information.

protected License()

Initializes a new instance of the License class

public static License LoadFromXaml(string xaml)

Loads the license from XAML string.

public void SetExpirationDate(DateTime date)

Sets the expiration date of this license.

Sets the upgrade expiration date of this license.

protected abstract LicenseError Validate()

Determines whether valid license can be granted.