RouteBuilderExtension Class

Extends a MapRouteRouteBuilderExtensions object for routing within a web application containing the ASP.NET Core MVC Dashboard.

Namespace: DevExpress.DashboardAspNetCore

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

Declaration

public static class RouteBuilderExtension :
    Object
Public Module RouteBuilderExtension
    Inherits Object

Routing functionality is responsible for mapping an incoming request to a route handler. The code sample below shows how to set a default dashboard route handler:

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

Inheritance

Object
RouteBuilderExtension

See Also