GetConsumptionQuantity

Metered.GetConsumptionQuantity method

Retrieves the amount of MBs processed.

public static decimal GetConsumptionQuantity()

Return Value

consumption quantity

Examples

The following example demonstrates how to retrieve the amount of MBs processed.

string publicKey = "Public Key";
string privateKey = "Private Key";

Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);

decimal mbProcessed = Metered.GetConsumptionQuantity();

See Also