GetConsumptionCredit

Metered.GetConsumptionCredit method

Retrieves count of credits consumed.

public static decimal GetConsumptionCredit()

Return Value

Count of already used credits

Examples

Following example demonstrates how to retrieve count of credits consumed.

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

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

decimal creditsConsumed = Metered.GetConsumptionCredit();

See Also