BabelLicense

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Provides the abstract base class for implementing a license.

public abstract class BabelLicense : ILicense, IDisposable

Inheritance

objectBabelLicense

Implements

ILicense, IDisposable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Extension Methods

Licenseable.Build(ILicense), Licenseable.CopyFrom<BabelLicense>(BabelLicense, BabelLicense), Licenseable.ExpiresAt<BabelLicense>(BabelLicense, DateTime?), Licenseable.ForAnyAssembly<BabelLicense>(BabelLicense), Licenseable.ForAnyComponent<BabelLicense>(BabelLicense), Licenseable.ForAssembly<BabelLicense>(BabelLicense, Assembly), Licenseable.ForAssembly<BabelLicense>(BabelLicense, string), Licenseable.ForBetaTesters<BabelLicense>(BabelLicense, string, string, DateTime?), Licenseable.ForProduct<BabelLicense>(BabelLicense, string, string, string, string, string), Licenseable.IssuedAt<BabelLicense>(BabelLicense, DateTime?), Licenseable.LicensedTo<BabelLicense>(BabelLicense, string, string, string, string, byte[]), Licenseable.NotForVirtualEnvironment<BabelLicense>(BabelLicense), Licenseable.RestrictedToProcess<BabelLicense>(BabelLicense, params string[]), Licenseable.SignWith(ILicense, ISignatureProvider), Licenseable.SignWithKeys(ILicense, string, string), Licenseable.SupportExpiresAt<BabelLicense>(BabelLicense, DateTime?), Licenseable.ToRestrictedDomain<BabelLicense>(BabelLicense, string, string), Licenseable.UseOnlyAt<BabelLicense>(BabelLicense, string), Licenseable.ValidateWith(ILicense, ISignatureProvider), Licenseable.ValidateWithPublicKey(ILicense, string), Licenseable.WithComponents<BabelLicense>(BabelLicense, params string[]), Licenseable.WithFeature<BabelLicense>(BabelLicense, string, string, byte[], DateTime?, byte[]), Licenseable.WithFeature<BabelLicense>(BabelLicense, Feature), Licenseable.WithFeatures<BabelLicense>(BabelLicense, params Feature[]), Licenseable.WithField<BabelLicense>(BabelLicense, string, string), Licenseable.WithFields<BabelLicense>(BabelLicense, IDictionary<string, string>), Licenseable.WithFields<BabelLicense>(BabelLicense, params Field[]), Licenseable.WithHardwareKey<BabelLicense>(BabelLicense, string), Licenseable.WithId<BabelLicense>(BabelLicense, string), Licenseable.WithMaxSites<BabelLicense>(BabelLicense, int), Licenseable.WithMaximumRunCount<BabelLicense>(BabelLicense, int?), Licenseable.WithMaximumRunningInstances<BabelLicense>(BabelLicense, int?), Licenseable.WithRestrictions<BabelLicense>(BabelLicense, params Restriction[]), Licenseable.WithTrialDays<BabelLicense>(BabelLicense, int?), Licenseable.WithTrialRunTime<BabelLicense>(BabelLicense, TimeSpan?), Licenseable.WithType<BabelLicense>(BabelLicense, string), Licenseable.WithUniqueId<BabelLicense>(BabelLicense, string, int)

Constructors

BabelLicense()

Specialized default constructor for use only by derived class.

protected BabelLicense()

Properties

Assemblies

Gets the licensed assemblies collection.

public ICollection<string> Assemblies { get; }

Property Value

ICollection<string>

Components

Gets the licensed components collection.

public ICollection<string> Components { get; }

Property Value

ICollection<string>

ExpireDate

Gets, sets the license expire date.

public DateTime? ExpireDate { get; set; }

Property Value

DateTime?

Features

Gets the license collection.

public ICollection<Feature> Features { get; }

Property Value

ICollection<Feature>

Fields

Gets the license collection.

public ICollection<Field> Fields { get; }

Property Value

ICollection<Field>

Id

Gets or sets the license identifier.

public string Id { get; set; }

Property Value

string

IssueDate

Gets, sets the license issue date.

public DateTime? IssueDate { get; set; }

Property Value

DateTime?

LicenseKey

Gets the license key granted to this component.

public abstract string LicenseKey { get; }

Property Value

string

Licensee

Gets, sets the information.

public Licensee Licensee { get; set; }

Property Value

Licensee

Product

Gets, sets the licensed product information.

public Product Product { get; set; }

Property Value

Product

Restrictions

Gets the collection of objects.

public ICollection<Restriction> Restrictions { get; }

Property Value

ICollection<Restriction>

Sites

Gets or sets the number of sites to license.

public int? Sites { get; set; }

Property Value

int?

SupportExpireDate

Gets, sets the license expire date.

public DateTime? SupportExpireDate { get; set; }

Property Value

DateTime?

Type

Gets or sets the license type.

public string Type { get; set; }

Property Value

string

Methods

Dispose()

Releases the unmanaged resources used by the Babel.Licensing.BabelLicense.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the Babel.Licensing.BabelLicense and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

NameDescription

true to release both managed and unmanaged resources; false to release only unmanaged resources.

~BabelLicense()

finalizer.

protected ~BabelLicense()

Last updated