Last active
September 3, 2015 15:02
-
-
Save AzimUddin/7802ad952146ba816f16 to your computer and use it in GitHub Desktop.
An example of measuring Request Charge for an insert Operation for Azure DocumentDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task InsertDocumentAsync(Student student, bool showDebugInfo) | |
{ | |
ResourceResponse<Document> response = await client.CreateDocumentAsync(colSelfLink, student); | |
Console.WriteLine("{0}\tInsert Operation, # of RUs: {1}", DateTime.UtcNow, response.RequestCharge); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment