Back to Devexpress

RouteBuilderExtension Class

dashboard-devexpress-dot-dashboardaspnetcore-2ae56ec8.md

latest2.4 KB
Original Source

RouteBuilderExtension Class

Provides extension methods to configure routing for the Web Dashboard.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public static class RouteBuilderExtension
vb
Public Module RouteBuilderExtension

Remarks

Routing functionality is responsible for mapping an incoming request to a route handler. ASP.NET Core applications support two routing types: the endpoint routing and routing at the MVC level. The endpoint routing is set as a default routing. The Web Dashboard can use both routing types.

The code sample below shows how to set a default dashboard route handler for endpoint routing. The route prefix is api/dashboard and the controller name is DefaultDashboard:

cs
// Maps the dashboard route.
app.MapDashboardRoute("api/dashboard", "DefaultDashboard");

A route prefix is used to handle requests from the client-side DashboardControl. Use the following properties in the client applications to specify the endpoint:

Inheritance

Object RouteBuilderExtension

See Also

RouteBuilderExtension Members

Routing in ASP.NET Core

DevExpress.DashboardAspNetCore Namespace