Table of Contents

Class License

Namespace
ComponentSpace.Saml2.Licensing
Assembly
ComponentSpace.Saml2.dll

Provides license information.

public class License : ILicense
Inheritance
License
Implements
Inherited Members

Constructors

License(LicenseManager)

Initializes a new instance of the License class.

public License(LicenseManager licenseManager)

Parameters

licenseManager LicenseManager

The license manager.

Properties

CustomerID

Gets the customer ID.

public string CustomerID { get; }

Property Value

string

The customer ID.

Expiry

Gets the date/time the license expires.

public DateTime Expiry { get; }

Property Value

DateTime

The date/time the license expires.

IssuedAt

Gets the date/time the license was issued.

public DateTime IssuedAt { get; }

Property Value

DateTime

The date/time the license was issued.

LicenseNumber

Gets the license number.

public string LicenseNumber { get; }

Property Value

string

The license number.

ProductID

Gets the product ID.

public string ProductID { get; }

Property Value

string

The product ID.

ProductName

Gets the product name.

public string ProductName { get; }

Property Value

string

The product name.

ProductVersion

Gets the product version.

public string ProductVersion { get; }

Property Value

string

The product version.

Methods

HasExpired()

Indicates whether the license has expired.

public bool HasExpired()

Returns

bool

true if the license has expired; otherwise false.

IsLicenseProvided()

Indicates whether a license is provided.

public bool IsLicenseProvided()

Returns

bool

true if a license is provided; otherwise false.

IsLicensed()

Indicates whether the product is licensed.

public bool IsLicensed()

Returns

bool

true if licensed; otherwise false.