Interface ILicenseManager
Manages the licenses for the system
Namespace: ImageVault.Core.License
Assembly: ImageVault.Core.dll
Syntax
public interface ILicenseManager
Methods
GetCurrentLicense()
Gets the current licenses on the system
Declaration
ImageVaultLicenseInfo GetCurrentLicense()
Returns
| Type | Description |
|---|---|
| ImageVaultLicenseInfo |
GetInstanceInfo(Boolean)
Get instance info for the system
Declaration
ImageVaultInstanceInfo GetInstanceInfo(bool getAllInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | getAllInfo | True if all information should be collected, false if only standard info should be collected |
Returns
| Type | Description |
|---|---|
| ImageVaultInstanceInfo |
ValidateLicense()
Checks if the current license is valid.
Declaration
void ValidateLicense()
Exceptions
| Type | Condition |
|---|---|
| LicenseException | If license is not valid |
ValidateNoOfPublishingSites(Int32)
Validates that current number of sites does not exceed the number of published sites in the database
Declaration
void ValidateNoOfPublishingSites(int noOfSites)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | noOfSites |
Exceptions
| Type | Condition |
|---|---|
| LicenseException | If license only permits publishing to less than the supplied number of sites. |