RequestDelegateRouteBuilderExtensions Class

Definition

Provides extension methods for adding new handlers to a IRouteBuilder.

C#
public static class RequestDelegateRouteBuilderExtensions
Inheritance
RequestDelegateRouteBuilderExtensions

Methods

MapDelete(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given template, and action.

MapDelete(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given template, and handler.

MapDelete(IRouteBuilder, String, RequestDelegate)

Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given template, and handler.

MapGet(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given template, and action.

MapGet(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given template, and handler.

MapGet(IRouteBuilder, String, RequestDelegate)

Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given template, and handler.

MapMiddlewareDelete(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP DELETE requests for the given template, and action.

MapMiddlewareGet(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP GET requests for the given template, and action.

MapMiddlewarePost(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given template, and action.

MapMiddlewarePut(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given template, and action.

MapMiddlewareRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder for the given template, and action.

MapMiddlewareVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP requests for the given verb, template, and action.

MapPost(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given template, and action.

MapPost(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given template, and handler.

MapPost(IRouteBuilder, String, RequestDelegate)

Adds a route to the IRouteBuilder that only matches HTTP POST requests for the given template, and handler.

MapPut(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given template, and action.

MapPut(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given template, and handler.

MapPut(IRouteBuilder, String, RequestDelegate)

Adds a route to the IRouteBuilder that only matches HTTP PUT requests for the given template, and handler.

MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder for the given template, and action.

MapRoute(IRouteBuilder, String, RequestDelegate)

Adds a route to the IRouteBuilder for the given template, and handler.

MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>)

Adds a route to the IRouteBuilder that only matches HTTP requests for the given verb, template, and action.

MapVerb(IRouteBuilder, String, String, Func<HttpRequest,HttpResponse,RouteData,Task>)

Adds a route to the IRouteBuilder that only matches HTTP requests for the given verb, template, and handler.

MapVerb(IRouteBuilder, String, String, RequestDelegate)

Adds a route to the IRouteBuilder that only matches HTTP requests for the given verb, template, and handler.

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0