Show / Hide Table of Contents

Class MachineLicense

Represents the license that can be validated against the local machine.

Inheritance
System.Object
Freezable<LicenseProviderAttribute>
License
MachineLicense
Inherited Members
License.Assembly
License.Provider
License.IsFrozen
License.ProviderData
License.SignedString
License.Id
License.Category
License.Product
License.Company
License.Items
License.Item[String]
License.UserName
License.UserCompany
License.Expiration
License.ExpirationDate
License.SetExpirationDate(DateTime)
License.IsExpired
License.UpgradeExpiration
License.UpgradeExpirationDate
License.SetUpgradeExpirationDate(DateTime)
License.Data
License.LoadFromXaml(String)
Freezable<LicenseProviderAttribute>.VerifyFrozenAccess()
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()
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest