Skip to content

Instantly share code, notes, and snippets.

@AzimUddin
Last active September 3, 2015 15:02
Show Gist options
  • Save AzimUddin/7802ad952146ba816f16 to your computer and use it in GitHub Desktop.
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
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