Created
September 22, 2020 00:43
-
-
Save ealsur/bd0262bf4805bd088f9f10031716a7d2 to your computer and use it in GitHub Desktop.
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
ToDoActivity item = new ToDoActivity() { ...}; | |
ItemResponse<ToDoActivity> itemResponse = await this.container.CreateItemAsync( | |
item, | |
requestOptions: new ItemRequestOptions() { EnableContentResponseOnWrite = false }); | |
ToDoActivity responseContent = itemResponse.Resource; // This is really the same as "item" | |
double consumedRUs = itemResponse.Headers.RequestCharge; | |
string etag = itemResponse.Headers.ETag; | |
string session = itemResponse.Headers.Session; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment