question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non working example in documentation for ReadManyItemsStreamAsync in CosmosDB C# SDK

See original GitHub issue

The worked example is incomplete. There is no hint at to where response comes from.

`IReadOnlyList<(string, PartitionKey)> itemList = new List<(string, PartitionKey)> { (“Id1”, new PartitionKey(“pkValue1”)), (“Id2”, new PartitionKey(“pkValue2”)), (“Id3”, new PartitionKey(“pkValue3”)) };

using (ResponseMessage responseMessage = await this.Container.ReadManyItemsStreamAsync(itemList)) { using (Stream stream = response.ReadBodyAsync()) { //Read or do other operations with the stream using (StreamReader streamReader = new StreamReader(stream)) { string content = streamReader.ReadToEndAsync(); } } }`


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TwoPatientcommented, Feb 16, 2022

Thank you 👍

0reactions
msftbot[bot]commented, Feb 15, 2022

Hi @TwoPatient. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Container.ReadManyItemsStreamAsync Method
Reads multiple items from a container using Id and PartitionKey values.
Read more >
Does the Cosmos .NET SDK ReadManyItemsStreamAsync ...
So no, there is no limit, the internal implementation is the one taking your input and splitting it into different requests as needed, ......
Read more >
Troubleshoot an application using the Azure Cosmos DB ...
Run a script to create menu-driven options to insert and delete documents. Time to insert and delete documents. Conclusion. Troubleshoot an application using ......
Read more >
Preventing Headaches with Cosmos Document IDs
The following simple tip regarding Cosmos DB's document identifier property may help you avoid creating a hard-to-find bug in your code.
Read more >
azcosmos
Azure Cosmos DB SDK for Go. Introduction. This client library enables client applications to connect to Azure Cosmos DB via the SQL API....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found