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

Replace RequestData with BoundConfiguration #141

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

stevejgordon
Copy link
Collaborator

@stevejgordon stevejgordon commented Nov 20, 2024

This PR involves a comprehensive refactor to replace the RequestData class with a new class named BoundConfiguration across the codebase. The BoundConfiguration class encapsulates configuration details and implements the IRequestConfiguration interface, which avoids introducing new overloads of the Request \ RequestAsync methods. We type check in the transport, and when the provided IRequestConfiguration is a BoundConfiguration, we use that without rebinding.

Closes #138

This commit involves a comprehensive refactor to replace the `RequestData` class with a new class named `BoundConfiguration` across the codebase. The `BoundConfiguration` class encapsulates configuration details and implements the `IRequestConfiguration` interface.
@stevejgordon stevejgordon merged commit 86a1ab5 into main Nov 20, 2024
5 checks passed
@stevejgordon stevejgordon deleted the feature/bound-config branch November 20, 2024 15:00
@flobernd flobernd added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v0.5.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support advanced used case where a consumer wants to cache per-request bound configuration
3 participants