LicenceMetadata

Description

sealed class Tinman.Core.Licensing.LicenceMetadata

Represents licence metadata information.

Public / Constructors

From​Request


public static method FromRequest → (1)

licenceRequest in : Path

[not-null]
Path to licence request file.

returns → LicenceMetadata

The licence metadata.

Creates a new instance of LicenceMetadata from the given licence request.

IOException

If an I/O error has occurred.

ValidatingException

If the contents of licenceRequest in are malformed.

Licence​Metadata


public constructor LicenceMetadata → (6)

timestamp in : int32

The timestamp ticks (weeks) or -1 for current.

userName in : string

The user name or * for any.

domainName in : string

The domain name or * for any.

productName in : string

The product name or * for any.

companyName in : string

The company name or * for any.

copyrightNotice in : string

The copyright notice or * for any.

Creates a new instance of LicenceMetadata.

Public / Methods

Is​Valid​For


public method IsValidFor → (1)

type in : LicenceType

The licence type.

returns → bool

true if all metadata values are valid for type in, false if not.

Are the metadata values valid for the given licence type?

To​Licence​Type


public method ToLicenceType → (1)

type in : LicenceType

The licence type.

returns → LicenceMetadata

The reduced metadata that contains placeholders for metadata information that is not bound by the licence type in.

Transforms this full metadata to the reduced metadata for the given licence type.

To​Timestamp


public method ToTimestamp → (1)

timestamp in : int32

The new Timestamp value.

returns → LicenceMetadata

The updated metadata.

Updates the Timestamp value of this metadata.

Public / Attributes

Company​Name


public readonly attribute CompanyName → (string)

The company name or '*' for any.

Copyright​Notice


public readonly attribute CopyrightNotice → (string)

The legal copyright notice or '*' for any.

Domain​Name


public readonly attribute DomainName → (string)

The user domain or '*' for any.

Product​Name


public readonly attribute ProductName → (string)

The product name or '*' for any.

Timestamp


public readonly attribute Timestamp → (int32)

The timestamp index.

Type


public readonly attribute Type → (LicenceType)

The licence type.

User​Name


public readonly attribute UserName → (string)

The user name or '*' for any.