The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

EndpointRouteBuilderExtension Class

Provides extension methods to configure endpoint routing for the Web Dashboard.

Namespace: DevExpress.DashboardAspNetCore

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

Declaration

public static class EndpointRouteBuilderExtension
Public Module EndpointRouteBuilderExtension

Remarks

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 endpoint routing:

public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
  // ...
  app.UseEndpoints(endpoints => {
      EndpointRouteBuilderExtension.MapDashboardRoute(endpoints, "dashboardApi");
      endpoints.MapControllerRoute(
          name: "default",
          pattern: "{controller=Home}/{action=Index}/{id?}");
      endpoints.MapRazorPages();
  });
}

For routing at the MVC level, see RouteBuilderExtension.

Inheritance

Object
EndpointRouteBuilderExtension
See Also