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 C# code shows you how to set metered public and private keys:

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

//  Accesses the SetMeteredKey property and passes the public and private keys as parameters
	metered.SetMeteredKey("*****", "*****");

//  Gets the metered data quantity before API call
	decimal amountbefore = Aspose.Slides.Metered.GetConsumptionQuantity();

//  Displays the information
	Console.WriteLine("Amount Consumed Before: " + amountbefore.ToString());

//  Gets the metered data amount after API call
	decimal amountafter = Aspose.Slides.Metered.GetConsumptionQuantity();

//  Displays the information
	Console.WriteLine("Amount Consumed After: " + amountafter.ToString());