Skip to content

Add value-based equality for CosmosClientOptions and other option bags#5901

Open
AndriySvyryd wants to merge 1 commit into
Azure:mainfrom
AndriySvyryd:Issue4965
Open

Add value-based equality for CosmosClientOptions and other option bags#5901
AndriySvyryd wants to merge 1 commit into
Azure:mainfrom
AndriySvyryd:Issue4965

Conversation

@AndriySvyryd
Copy link
Copy Markdown

Implements IEquatable on CosmosClientOptions, CosmosClientTelemetryOptions, CosmosThresholdOptions, and CosmosSerializationOptions. Equality compares only publicly settable properties (including PREVIEW-gated public setters); internal-only state and properties without a public setter are excluded. Reference-type properties (delegates, factories, custom callbacks) use reference equality, matching the rest of the SDK conventions.

Closes #4965.

@AndriySvyryd AndriySvyryd force-pushed the Issue4965 branch 2 times, most recently from 865e63f to 262c71b Compare May 23, 2026 05:25
Implements IEquatable on CosmosClientOptions, CosmosClientTelemetryOptions, CosmosThresholdOptions, and CosmosSerializationOptions. Equality compares only publicly settable properties (including PREVIEW-gated public setters); properties without a public setter are excluded. Reference-type properties (delegates, factories, custom callbacks) use reference equality, matching the rest of the SDK conventions.

Closes Azure#4965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement value semantics for CosmosClientOptions

1 participant