-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
affected-very-fewThis issue impacts very few customersThis issue impacts very few customersapi-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-routingseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Description
MapMiddleware extensions are missing in new Endpoint.
In previous routebuilder it has MapMiddlewareRoute, MapMiddlewareGet, MapMiddlewarePost, MapMiddlewarePut, MapMiddlewareDelete.
I have considered the following alternative.
app.UseEndpoints(endpoints =>
{
var newAppbuilder = endpoints.CreateApplicationBuilder();
newAppbuilder.UseMiddleware<Middleware1>();
endpoints.MapGet("middleware1", newAppbuilder.Build());
});zygimantas, pavinan, Tratcher and oskarfigura
Metadata
Metadata
Assignees
Labels
affected-very-fewThis issue impacts very few customersThis issue impacts very few customersapi-suggestionEarly API idea and discussion, it is NOT ready for implementationEarly API idea and discussion, it is NOT ready for implementationarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-routingseverity-minorThis label is used by an internal toolThis label is used by an internal tool