The requested page is not available for the requested platform. You are viewing the content for Default platform.

RouteBuilderExtension Class

Provides extension methods to configure routing at the MVC level for the Web Dashboard.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v19.1.AspNetCore.dll


public static class RouteBuilderExtension
Public Module RouteBuilderExtension


Routing functionality is responsible for mapping an incoming request to a route handler. Starting from ASP.NET Core 2.2, the .NET Core application supports two routing types: routing at the MVC level and endpoint routing. For ASP.NET Core 3, 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 routing at the MVC level:

public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
  // ...
  app.UseMvc(routes => {
          name: "default",
          template: "{controller=Home}/{action=Index}/{id?}");

For endpoint routing, see EndpointRouteBuilderExtension.


See Also