Skip to content

Instantly share code, notes, and snippets.

@ealsur
Last active September 22, 2020 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealsur/85c27d994602b95b497ef24ed8f8a41b to your computer and use it in GitHub Desktop.
Save ealsur/85c27d994602b95b497ef24ed8f8a41b to your computer and use it in GitHub Desktop.
ToDoActivity item = new ToDoActivity(){...};
ItemResponse<ToDoActivity> itemResponse = await this.container.CreateItemAsync(item);
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