Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active July 4, 2019 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/2f9cad3b25a73caeabd92ca53735c8c2 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/2f9cad3b25a73caeabd92ca53735c8c2 to your computer and use it in GitHub Desktop.
// For complete examples and data files, please go to https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-.NET
/// <summary>
/// Number of already used credits
/// </summary>
public static decimal GetAlreadyUsedCredit()
{
string PublicKey = ""; // Your public license key
string PrivateKey = ""; // Your private license key
Metered metered = new Metered();
metered.SetMeteredKey(PublicKey, PrivateKey);
//Retrieves amount of already used credits
return Metered.GetConsumptionCredit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment