Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support ContentResponseOnWrite option in CosmosClientBuilder #1917

Closed
buchizo opened this issue Oct 8, 2020 · 3 comments · Fixed by #2145
Closed

Add support ContentResponseOnWrite option in CosmosClientBuilder #1917

buchizo opened this issue Oct 8, 2020 · 3 comments · Fixed by #2145
Labels
discussion-wanted Need a discussion on an area feature-request New feature or request

Comments

@buchizo
Copy link

buchizo commented Oct 8, 2020

Currently .NET SDK support ContentResponseOnWrite option in ItemRequestOptions per requests. But that option doesn't configures in CosmosClientBuilder.

I would like to set default behavior for content response on write. For example, I want to default behavior is false about EnableContentResponseOnWrite option, and specific operation require response.

For example solution (want):

var cosmosclient = new CosmosClientBuilder(connString)
                    .WithConnectionModeDirect()
                    .WithBulkExecution(false)
                    .WithContentResponseOnWrite(false) // <- want this
                    .Build();

relatded: https://devblogs.microsoft.com/cosmosdb/enable-content-response-on-write/#comment-168

@j82w j82w added discussion-wanted Need a discussion on an area feature-request New feature or request labels Oct 8, 2020
@ealsur
Copy link
Member

ealsur commented Oct 9, 2020

For reference, in Java SDK, the client has this setting at the client configuration level.

@kirankumarkolli
Copy link
Member

Boolean as argument vs explicit method names (like WithNoContect...). Thoghts?

@asketagarwal
Copy link
Contributor

@j82w j82w closed this as completed in #2145 Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion-wanted Need a discussion on an area feature-request New feature or request
Projects
None yet
5 participants