Plugins Licensing - Metered License
Aspose.Imaging licensing plugins introduce the capability for developers to apply a metered key, which represents a new licensing mechanism. The plugin licensing model imposes a restriction where only one plugin can be licensed within a single application instance. If entry points beyond the defined scope of the licensed plugin are utilized, the application automatically transitions to a trial operating mode. This ensures compliance with licensing terms while offering users the opportunity to explore additional functionalities through the trial mode. For further information, please consult the Metered Licensing FAQ section.
To obtain licenses, kindly visit the Aspose Purchase portal.
Metered Plugin Licensing
Below are the straightforward steps to utilize the Metered class:
- Instantiate the
Metered
class. - Provide the public and private keys using the
setMeteredKey
method. - Perform the necessary processing tasks.
- Invoke the
getConsumptionQuantity
method of the Metered class. - This will yield the quantity of API requests consumed up to that point.
Here’s a sample code illustrating how to set the metered public and private keys:
// Valid plugin license use example
Metered license = new Metered();
// Only one metered plug-in license is supported
license.SetMeteredKey("<your public key>", "<your private key>");
Please see more Plugin Licensing Use examples in C#.