GroupDocsGists
10/24/2017 - 5:11 PM

consumptionquantityMeteredComparison.cs

// Get consumption quantity from metered
decimal amountBefor = Metered.GetConsumptionQuantity();
 
// Call comparison
string sourcePath = @"./data/source.docx";
string targetPath = @"./data/target.docx";
Comparer comparer = new Comparer();
comparer.Compare(sourcePath, targetPath, new ComparisonSettings());
comparer.Compare(sourcePath, targetPath, new ComparisonSettings());
 
// Get consumption quantity from metered after several calls of comparison
decimal amountAfter = Metered.GetConsumptionQuantity();