Cosmos DB Request Units and the .NET SDK

added by DotNetKicks
10/31/2017 1:29:37 PM

2 Kicks, 262 Views

Cosmos includes the resource charge for every operation as an HTTP response header. It is not immediately obvious how to access the request charge when using the .NET SDK, but as the following code shows, you can access a RequestCharge property as part of any IFeedResponse.


0 comments