Skip to content

Expose entire EndpointBuilder to filter factories #43255

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

Closed
wants to merge 4 commits into from
Closed

Conversation

halter73
Copy link
Member

This flows the entire EndpointBuilder through to endpoint filter factories. This gives more context like the display name to filters, and reduces the number of properties in RequestDelegateFactoryOptions and EndpointFilterFactoryContext. And since the EndpointBuilder is usually a RouteEndpointBuilder, filters can observe the route pattern as well.

EndpointBuilder.RequestDelegate must be null if it is passed into the RequestDelegateFactory.Create(). The RequestDelegateFactory sets the RequestDelegate to the same instance returned via RequestDelegateResult.RequestDelegate. This is similar to how we were already mutating the passed-in metadata that was also then returned.

Fixes #43000

@Pilchie Pilchie added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Aug 24, 2022
@halter73
Copy link
Member Author

Closing in favor of #43543.

@halter73 halter73 closed this Aug 25, 2022
@halter73 halter73 deleted the halter73/43000 branch August 25, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose entire EndpointBuilder to filter factories
3 participants