IRouteBuilder IRouteBuilder IRouteBuilder Interface

Definition

Defines a contract for a route builder in an application. A route builder specifies the routes for an application.

public interface IRouteBuilder
type IRouteBuilder = interface
Public Interface IRouteBuilder
Derived

Properties

ApplicationBuilder ApplicationBuilder ApplicationBuilder

Gets the IApplicationBuilder.

DefaultHandler DefaultHandler DefaultHandler

Gets or sets the default IRouter that is used as a handler if an IRouter is added to the list of routes but does not specify its own.

Routes Routes Routes

Gets the routes configured in the builder.

ServiceProvider ServiceProvider ServiceProvider

Gets the sets the IServiceProvider used to resolve services for routes.

Methods

Build() Build() Build()

Builds an IRouter that routes the routes specified in the Routes property.

Extension Methods

MapRoute(IRouteBuilder, String, String) MapRoute(IRouteBuilder, String, String) MapRoute(IRouteBuilder, String, String)

Adds a route to the IRouteBuilder with the specified name and template.

MapRoute(IRouteBuilder, String, String, Object) MapRoute(IRouteBuilder, String, String, Object) MapRoute(IRouteBuilder, String, String, Object)

Adds a route to the IRouteBuilder with the specified name, template, and default values.

MapRoute(IRouteBuilder, String, String, Object, Object) MapRoute(IRouteBuilder, String, String, Object, Object) MapRoute(IRouteBuilder, String, String, Object, Object)

Adds a route to the IRouteBuilder with the specified name, template, default values, and constraints.

MapRoute(IRouteBuilder, String, String, Object, Object, Object) MapRoute(IRouteBuilder, String, String, Object, Object, Object) MapRoute(IRouteBuilder, String, String, Object, Object, Object)

Adds a route to the IRouteBuilder with the specified name, template, default values, and data tokens.

MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String) MapAreaRoute(IRouteBuilder, String, String, String)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName and template.

MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, and defaults.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, and constraints.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)

Adds a route to the IRouteBuilder with the given MVC area with the specified name, areaName, template, defaults, constraints, and dataTokens.

MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object) MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object) MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object) MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object) MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)

Configures a route that is automatically bypassed if the requested URL appears to be for a static file (e.g., if it has a filename extension).

MapWebApiRoute(IRouteBuilder, String, String) MapWebApiRoute(IRouteBuilder, String, String) MapWebApiRoute(IRouteBuilder, String, String)
MapWebApiRoute(IRouteBuilder, String, String, Object) MapWebApiRoute(IRouteBuilder, String, String, Object) MapWebApiRoute(IRouteBuilder, String, String, Object)
MapWebApiRoute(IRouteBuilder, String, String, Object, Object) MapWebApiRoute(IRouteBuilder, String, String, Object, Object) MapWebApiRoute(IRouteBuilder, String, String, Object, Object)
MapWebApiRoute(IRouteBuilder, String, String, Object, Object, Object) MapWebApiRoute(IRouteBuilder, String, String, Object, Object, Object) MapWebApiRoute(IRouteBuilder, String, String, Object, Object, Object)
MapDelete(IRouteBuilder, String, RequestDelegate) MapDelete(IRouteBuilder, String, RequestDelegate) MapDelete(IRouteBuilder, String, RequestDelegate)

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

MapDelete(IRouteBuilder, String, Action<IApplicationBuilder>) MapDelete(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapDelete(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) 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.

MapGet(IRouteBuilder, String, RequestDelegate) MapGet(IRouteBuilder, String, RequestDelegate) MapGet(IRouteBuilder, String, RequestDelegate)

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

MapGet(IRouteBuilder, String, Action<IApplicationBuilder>) MapGet(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapGet(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) 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.

MapMiddlewareDelete(IRouteBuilder, String, Action<IApplicationBuilder>) MapMiddlewareDelete(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapMiddlewareGet(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapMiddlewarePost(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapMiddlewarePut(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapMiddlewareRoute(IRouteBuilder, String, Action<IApplicationBuilder>) MapMiddlewareRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

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

MapMiddlewareVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) MapMiddlewareVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) 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, RequestDelegate) MapPost(IRouteBuilder, String, RequestDelegate) MapPost(IRouteBuilder, String, RequestDelegate)

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

MapPost(IRouteBuilder, String, Action<IApplicationBuilder>) MapPost(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapPost(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) 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.

MapPut(IRouteBuilder, String, RequestDelegate) MapPut(IRouteBuilder, String, RequestDelegate) MapPut(IRouteBuilder, String, RequestDelegate)

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

MapPut(IRouteBuilder, String, Action<IApplicationBuilder>) MapPut(IRouteBuilder, String, Action<IApplicationBuilder>) 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>) MapPut(IRouteBuilder, String, Func<HttpRequest,HttpResponse,RouteData,Task>) 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.

MapRoute(IRouteBuilder, String, RequestDelegate) MapRoute(IRouteBuilder, String, RequestDelegate) MapRoute(IRouteBuilder, String, RequestDelegate)

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

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

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

MapVerb(IRouteBuilder, String, String, RequestDelegate) MapVerb(IRouteBuilder, String, String, RequestDelegate) MapVerb(IRouteBuilder, String, String, RequestDelegate)

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

MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) MapVerb(IRouteBuilder, String, String, Action<IApplicationBuilder>) 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>) MapVerb(IRouteBuilder, String, String, Func<HttpRequest,HttpResponse,RouteData,Task>) 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.

Applies to