Show / Hide Table of Contents

Class LicenseConfiguration

Provides configuration data for license provider implementations.

Inheritance
System.Object
LicenseConfiguration
MirageLicenseConfiguration
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Licensing
Assembly: Sartorius.SAF.Licensing.dll
Syntax
[InheritedExport]
public abstract class LicenseConfiguration

Constructors

View Source

LicenseConfiguration()

Initializes a new instance of the LicenseConfiguration class.

Declaration
protected LicenseConfiguration()

Properties

View Source

Item[String]

Gets the configuration entry with the specified key.

Declaration
public virtual object this[string key] { get; protected set; }
Parameters
Type Name Description
System.String key

The key.

Property Value
Type Description
System.Object

The System.Object.

Methods

View Source

Add(String, Object)

Adds provider specific configuration for the specified key.

Declaration
protected void Add(string key, object value)
Parameters
Type Name Description
System.String key

The key of the named configuration.

System.Object value

The provider specific configuration.

Examples
// Provide the ReadKey for the Mirage API
configuration.Add("ReadKey", "XTIOR…");
View Source

ConfigureMaintenanceMapping(String)

Configures the maintenance mapping for the specified feature.

Declaration
protected void ConfigureMaintenanceMapping(string maintenanceFeatureId)
Parameters
Type Name Description
System.String maintenanceFeatureId

The identifier of the feature which provides the maintenance expiration for all features.

Remarks

TBD: mappingCollection instead of method.

Examples
// 'QHD002' is the maintenance feature which defines the maintenance for the whole application (and this for every feature in the license).
configuration.ConfigureMaintenanceMapping("QHD002");
View Source

ConfigureMaintenanceMapping(String, String)

Configures the maintenance mapping for the specified feature.

Declaration
protected void ConfigureMaintenanceMapping(string featureId, string maintenanceFeatureId)
Parameters
Type Name Description
System.String featureId

The identifier of the feature.

System.String maintenanceFeatureId

The identifier of the feature which provides the maintenance expiration for the feature specified by featureId.

Remarks

TBD: mappingCollection instead of method. Alternative: configuration via app.config? But this is not a per installation setting

Examples
// 'QHD000' is the core Feature. It's maintenance is defined by feature 'QHD002'
configuration.ConfigureMaintenanceMapping("QHD000", "QHD002");
// 'QHD001' is a separate feature feature. It's maintenance is separate from the application and defined by feature 'QHD003'
configuration.ConfigureMaintenanceMapping("QHD001", "QHD003");

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX