IRouteBuilder Interface¶
Defines a contract for a route builder in an application. A route builder specifies the routes for an application.
- Namespace
Microsoft.AspNetCore.Routing
- Assemblies
- Microsoft.AspNetCore.Routing
Properties¶
-
Microsoft.AspNetCore.Routing.IRouteBuilder.
ApplicationBuilder
¶ Gets the
Microsoft.AspNetCore.Builder.IApplicationBuilder
.Return type: Microsoft.AspNetCore.Builder.IApplicationBuilder IApplicationBuilder ApplicationBuilder { get; }
-
Microsoft.AspNetCore.Routing.IRouteBuilder.
DefaultHandler
¶ Gets or sets the default
Microsoft.AspNetCore.Routing.IRouter
that is used as a handler if anMicrosoft.AspNetCore.Routing.IRouter
is added to the list of routes but does not specify its own.Return type: Microsoft.AspNetCore.Routing.IRouter IRouter DefaultHandler { get; set; }
-
Microsoft.AspNetCore.Routing.IRouteBuilder.
Routes
¶ Gets the routes configured in the builder.
Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.IRouter> IList<IRouter> Routes { get; }
-
Microsoft.AspNetCore.Routing.IRouteBuilder.
ServiceProvider
¶ Gets the sets the
System.IServiceProvider
used to resolve services for routes.Return type: System.IServiceProvider IServiceProvider ServiceProvider { get; }
-
Methods¶
-
Build
()¶ Builds an
Microsoft.AspNetCore.Routing.IRouter
that routes the routes specified in theMicrosoft.AspNetCore.Routing.IRouteBuilder.Routes
property.Return type: Microsoft.AspNetCore.Routing.IRouter IRouter Build()
-