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

Added MapMiddleware extensions in EndpointBuilderExtension. #14468

Closed
wants to merge 1 commit into from

Conversation

pavinan
Copy link
Contributor

@pavinan pavinan commented Sep 26, 2019

Summary of the changes

  • Added MapMiddleware extensions that are similar to route builder extensions.

Addresses #14514

/// <param name="pattern">The route pattern.</param>
/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param>
/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns>
public static IEndpointConventionBuilder MapMiddleware(
Copy link
Member

@Tratcher Tratcher Sep 27, 2019

Choose a reason for hiding this comment

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

Middleware is not the best term here, it's mapping an entire pipeline/builder. How well would these work if they were just a overloads of Map? Would the arguments conflict too much?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about MapMiddlewareEndpoint? It will be similar to MapMiddlewareRoute.

Copy link
Member

@rynowak rynowak left a comment

Choose a reason for hiding this comment

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

@pavinan - please open an issue and start a discussion about this. We need to think about whether we want to expose this functionality in this, and what set of methods would be required to do that.

@analogrelay
Copy link
Contributor

I'm going to close this PR until we finish some discussion about design in an issue. We can always re-open this or accept a new PR once a design is finalized.

@analogrelay analogrelay closed this Oct 3, 2019
@amcasey amcasey added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants