Skip to content

Conversation

davidfowl
Copy link
Member

  • This will allow us to generate a unique request delegate based on the action descriptor at early in the pipeline.

PS: This is mostly plumbing code.

- Remove dictionary lookup and version check per request
- This will allow us to generate a unique request delegate based on the action descriptor at early in the pipeline.
@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 12, 2020
@davidfowl
Copy link
Member Author

I'm torn on whether this should be exposed, but we can always do that later I guess.

Base automatically changed from davidfowl/faster-cache to master November 12, 2020 18:34
/// <summary>
/// Internal interfaces that allows us to optimize the request execution path based on ActionDescriptor
/// </summary>
internal interface IRequestDelegateFactory
Copy link
Member

@halter73 halter73 Nov 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a little odd to merge an abstraction without any implementations. I know there's https://github.com/dotnet/aspnetcore/blob/e9d16525cf3a832631a4e29ce826290adae873a9/src/Mvc/Mvc.Core/src/Routing/ControllerRequestDelegateFactory.cs ofc. Maybe we should wait for that or some other implementation of IRequestDelegateFactory to be ready before taking this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I'll merge both PRs

@davidfowl
Copy link
Member Author

Closed in favor of #27773

@davidfowl davidfowl closed this Nov 13, 2020
@davidfowl davidfowl deleted the davidfowl/request-delegate-factory branch December 8, 2020 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants