Class LicenseConfiguration
Provides configuration data for license provider implementations.
Namespace: Sartorius.SAF.Licensing
Assembly: Sartorius.SAF.Licensing.dll
Syntax
[InheritedExport]
public abstract class LicenseConfiguration
Constructors
View SourceLicenseConfiguration()
Initializes a new instance of the LicenseConfiguration class.
Declaration
protected LicenseConfiguration()
Properties
View SourceItem[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 SourceAdd(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 |
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");