Class MachineLicense
Represents the license that can be validated against the local machine.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: DevZest.Licensing
Assembly: DevZest.Licensing.dll
Syntax
public sealed class MachineLicense : License
Remarks
When publishing an MachineLicense, the Data property should be set as the string value returned by LocalMachineData, otherwise the validation will always fail.
MachineLicense uses DPAPI to encrypt a known GUID as its Data property. The validation is to decrypt the Data property, compare it with the known GUID. It requires System.Security.Permissions.DataProtectionPermission. If your application or component is target partial trust environment without System.Security.Permissions.DataProtectionPermission, use UserLicense instead.
Properties
Name | Description |
---|---|
LocalMachineData | Gets the data for local machine. |
Methods
Name | Description |
---|---|
Validate() |