Table of Contents

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 string
referenceId string
features HashSet<string>
expiryDate DateTime?
edition LicenseEdition?
issuedAt DateTime?
notBefore DateTime?

Properties

Edition

public LicenseEdition? Edition { get; }

Property Value

LicenseEdition?

ExpiryDate

Gets the expiry date of the license. If the license does not expire, this property is null.

public DateTime? ExpiryDate { get; }

Property Value

DateTime?

Features

public HashSet<string> Features { get; }

Property Value

HashSet<string>

Holder

public string Holder { get; }

Property Value

string

IsExpired

[JsonIgnore]
public bool IsExpired { get; }

Property Value

bool

IssuedAt

public DateTime? IssuedAt { get; }

Property Value

DateTime?

NotBefore

public DateTime? NotBefore { get; }

Property Value

DateTime?

ReferenceId

public string ReferenceId { get; }

Property Value

string

Methods

CheckValidation()

public void CheckValidation()