Class License
- Namespace
- OpenSettings.Models
- Assembly
- OpenSettings.dll
public class License
- Inheritance
-
License
- Inherited Members
Constructors
License(ClaimsIdentity)
public License(ClaimsIdentity claimsIdentity)
Parameters
claimsIdentity
ClaimsIdentity
License(ClaimsPrincipal)
public License(ClaimsPrincipal claimsPrincipal)
Parameters
claimsPrincipal
ClaimsPrincipal
License(string, string, HashSet<string>, DateTime?, LicenseEdition?, DateTime?, DateTime?)
[JsonConstructor]
public License(string holder, string referenceId, HashSet<string> features, DateTime? expiryDate, LicenseEdition? edition, DateTime? issuedAt, DateTime? notBefore)
Parameters
holder
stringreferenceId
stringfeatures
HashSet<string>expiryDate
DateTime?edition
LicenseEdition?issuedAt
DateTime?notBefore
DateTime?
Properties
Edition
public LicenseEdition? Edition { get; }
Property Value
ExpiryDate
Gets the expiry date of the license. If the license does not expire, this property is null
.
public DateTime? ExpiryDate { get; }
Property Value
Features
public HashSet<string> Features { get; }
Property Value
Holder
public string Holder { get; }
Property Value
IsExpired
[JsonIgnore]
public bool IsExpired { get; }
Property Value
IssuedAt
public DateTime? IssuedAt { get; }
Property Value
NotBefore
public DateTime? NotBefore { get; }
Property Value
ReferenceId
public string ReferenceId { get; }
Property Value
Methods
CheckValidation()
public void CheckValidation()