Class LicenseSettingsAttribute
Summary description for LicenseSettingsAttribute.
Inheritance
Implements
Inherited Members
Namespace: ImageVault.Core.License.Meriworks
Assembly: ImageVault.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class LicenseSettingsAttribute : Attribute, _Attribute
Constructors
LicenseSettingsAttribute()
Creates an instance of the LicenseSettingsAttribute class.
Declaration
public LicenseSettingsAttribute()
LicenseSettingsAttribute(String)
Creates a attribute that defines the license settings.
Declaration
public LicenseSettingsAttribute(string licenseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseName | The name of the product to validate the license |
LicenseSettingsAttribute(String, String)
Creates a attribute that defines the license settings.
Declaration
public LicenseSettingsAttribute(string filename, string licenseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The name of the license file |
System.String | licenseName | The name of the product to validate the license |
LicenseSettingsAttribute(String, String, String)
Creates a attribute that defines the license settings.
Declaration
public LicenseSettingsAttribute(string fileName, string licenseName, string publicKeyResource)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The name of the license file |
System.String | licenseName | The name of the product to validate the license |
System.String | publicKeyResource | The name of the public key resource PublicKeyResource |
Fields
DefaultFilename
Defines the default license filename
Declaration
public const string DefaultFilename = "meridiumLicense.config"
Field Value
Type | Description |
---|---|
System.String |
DefaultPublicKeyResource
Defines the default publicKeyResource name
Declaration
public const string DefaultPublicKeyResource = "ImageVault.Core.License.Meriworks.publicKey.xml"
Field Value
Type | Description |
---|---|
System.String |
Properties
FileName
The name of the license keyfile. Defaults to meridiumLicense.xml
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LicenseName
The name of the license
Declaration
public string LicenseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PublicKeyResource
The public key resource, if starting with file:// the local file is used otherwize the resource stream is used.
Declaration
public string PublicKeyResource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Defaults to Meridium.License.publicKey.xml