Skip to content

[Internal] Binary Encoding: Adds Client Option to Enable/Disable Request and Response Stream Conversation#5123

Merged
kirankumarkolli merged 5 commits intomasterfrom
users/kundadebdatta/disable_binary_encoding_on_response
Apr 14, 2025
Merged

[Internal] Binary Encoding: Adds Client Option to Enable/Disable Request and Response Stream Conversation#5123
kirankumarkolli merged 5 commits intomasterfrom
users/kundadebdatta/disable_binary_encoding_on_response

Conversation

@kundadebdatta
Copy link
Copy Markdown
Member

@kundadebdatta kundadebdatta commented Apr 11, 2025

Pull Request Template

Description

Create a new internal cosmos client options: EnableStreamPassThrough to enable or disable the request/ response stream conversation. When enabled, the request and/or response stream would not be converted to the desired target serialization type and would act just like a pass-through. The default value for this parameter is False.

Usage:

      CosmosClientOptions clientOptions = new CosmosClientOptions()
      {
          EnableStreamPassThrough = true,
      };

      CosmosClient cosmosClient = new (
          endpoint,
          authKey,
          clientOptions);

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #5122

@kundadebdatta kundadebdatta self-assigned this Apr 11, 2025
@kundadebdatta kundadebdatta changed the title [Internal] Binary Encoding: Adds Client Option to Enable/ Disable Request/ Response Stream Conversation [Internal] Binary Encoding: Adds Client Option to Enable/Disable Request and Response Stream Conversation Apr 11, 2025
@kundadebdatta kundadebdatta marked this pull request as ready for review April 11, 2025 19:47
NaluTripician
NaluTripician previously approved these changes Apr 11, 2025
aavasthy
aavasthy previously approved these changes Apr 11, 2025
@kundadebdatta kundadebdatta added auto-merge Enables automation to merge PRs BinaryEncoding binary encoding in .NET sdk labels Apr 11, 2025
Comment thread Microsoft.Azure.Cosmos/src/CosmosClientOptions.cs Outdated
@kirankumarkolli kirankumarkolli merged commit fa6097d into master Apr 14, 2025
26 checks passed
@kirankumarkolli kirankumarkolli deleted the users/kundadebdatta/disable_binary_encoding_on_response branch April 14, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs BinaryEncoding binary encoding in .NET sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary Encoding - Create a new Parameter in CosmosClientOptions to Enable or Disable the Request and Response Stream Conversation

4 participants