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.IRouterthat is used as a handler if anMicrosoft.AspNetCore.Routing.IRouteris 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.IServiceProviderused to resolve services for routes.Return type: System.IServiceProvider IServiceProvider ServiceProvider { get; }
-
Methods¶
-
Build()¶ Builds an
Microsoft.AspNetCore.Routing.IRouterthat routes the routes specified in theMicrosoft.AspNetCore.Routing.IRouteBuilder.Routesproperty.Return type: Microsoft.AspNetCore.Routing.IRouter IRouter Build()
-