Metered Licensing

Contents
[ ]
  1. Create an instance of the Metered class.
  2. Pass your public and private keys to the SetMeteredKey method.
  3. Do some processing (perform tasks).
  4. Call the GetConsumptionQuantity method of the Metered class.

You should see the amount/quantity of API requests you have consumed so far.

This sample code shows you how to use metered licensing:

// Creates an instance of the Metered class
Aspose.Slides.Metered metered = new Aspose.Slides.Metered();

// Passes the public and private keys to the Metered object
metered.SetMeteredKey("<valid public key>", "<valid private key>");

// Gets the metered data quantity before API call
decimal amountBefore = Aspose.Slides.Metered.GetConsumptionQuantity();
Console.WriteLine("Amount consumed before: " + amountBefore.ToString());

// Do something with Aspose.Slides API here
// ...

// Gets the metered data amount after API call
decimal amountAfter = Aspose.Slides.Metered.GetConsumptionQuantity();
Console.WriteLine("Amount consumed after: " + amountAfter.ToString());