RouteBuilderExtension.MapDashboardRoute(IRouteBuilder, String, String, String[], String) Method
In This Article
Maps the specified URL route and sets a prefix, controller and area names, and namespaces.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v24.2.AspNetCore.dll
NuGet Package: DevExpress.AspNetCore.Dashboard
#Declaration
public static void MapDashboardRoute(
this IRouteBuilder routeBuilder,
string routePrefix,
string controllerName,
string[] namespaces,
string areaName
)
#Parameters
Name | Type | Description |
---|---|---|
route |
IRoute |
The IRoute |
route |
String | A String value that specifies a route prefix. |
controller |
String | A String value that specifies the controller name. |
namespaces | String[] | A set of namespaces for the application. |
area |
String | A String value that specifies the name of the area to register. |
#Remarks
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:
- Client app with DashboardControl: DashboardControlOptions.endpoint
- ASP.NET Core Razor app: DashboardBackendOptionsBuilder.Uri
- ASP.NET MVC Razor app: DashboardBackendOptions.Uri
See Also