Skip to content

Always add adapter features into context #294

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

Merged
merged 6 commits into from
Feb 17, 2023
Merged

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Feb 17, 2023

Currently, the adapters replace a few features if endpoint metadata is configured for this to happen. However, this was intended to gate "expensive" operations, such as prebuffering the stream to enable InputStream. However, this now prevents APIs that are not "expensive" to be gated as well but are implemented in the feature as well. Some examples of this are HttpRequest.End() that is commonly used - it makes sense to implement it at the features, but shouldn't require buffering the response to turn it on.

This change will still keep the gating in place for the "expensive" operations, but enable APIs that are provided by the features to be available if possible without the endpoint metadata. It also adds some E2E tests using TestHost to verify these APIs perform as expected in the pipeline.

@twsouthwick twsouthwick requested a review from Tratcher February 17, 2023 17:31
Currently, the adapters replace a few features if endpoint metadata is configured for this to happen. However, this was intended to gate "expensive" operations, such as prebuffering the stream to enable InputStream. However, this now prevents APIs that are not "expensive" to be gated as well but are implemented in the feature as well. Some examples of this are `HttpRequest.End()` that is commonly used - it makes sense to implement it at the features, but shouldn't require buffering the response to turn it on.

This change will still keep the gating in place for the "expensive" operations, but enable APIs that are provided by the features to be available if possible without the endpoint metadata.
@twsouthwick twsouthwick force-pushed the tasou/feature-refactor branch from 35d4ecf to 5bdf049 Compare February 17, 2023 17:33
@twsouthwick twsouthwick merged commit 8a2b772 into main Feb 17, 2023
@twsouthwick twsouthwick deleted the tasou/feature-refactor branch February 17, 2023 19:40
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.

2 participants