Interface IStoreLicenses
Manages manipulation of IActivateLicenses product ILicense in configured License IStore.
Namespace: Sp.Agent.Storage
Assembly: Sp.Agent.dll
Methods
All()
Yields a list of the Configured IStore within the current For(String).
Declaration
IEnumerable<IStore> All()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IStore> |
Delete(String)
Deletes a license for the ProductContextFor(String, String) that was previously successfully Install(Byte[]).
Declaration
void Delete(string activationKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | activationKey | Activation key of ILicense that is to be removed. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | thrown if |
LicenseNotFoundException | thrown if the license identified by |
Install(Byte[])
Adds an Activated ILicense for the ProductContextFor(String, String) obtained via IActivateLicensesAdvanced.SendDeferredRequestAsync()
or the contents of a .BIN license file downloaded from the Software Potential service obtained via Manual Activation.
If an Activated ILicense for the same activation key already exists, it will replace the existing one.
All Evaluation licenses for a given product are removed if the license being installed is a Commercial License.
Declaration
void Install(byte[] licenseBlob)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | licenseBlob | The license blob to be installed. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | thrown if |
NonmatchingProductIdException | thrown if the |
LicenseRevisionException | thrown if the |
See Also
Events
LicenseInstalled
Triggered when a license is successfully activated or manually Install(Byte[]) for the ProductContextFor(String, String).
Declaration
event EventHandler LicenseInstalled
Event Type
Type | Description |
---|---|
System.EventHandler |