EndpointRouteBuilderExtension.MapDashboardRoute(IEndpointRouteBuilder, String, String, String) Method
OBSOLETE
Call the IEndpoint
Maps the specified URL route and sets a prefix, controller and area names.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v24.2.AspNetCore.dll
NuGet Package: DevExpress.AspNetCore.Dashboard
#Declaration
[Obsolete("Call the IEndpointRouteBuilder.MapDashboardRoute method instead.")]
public static void MapDashboardRoute(
IEndpointRouteBuilder endpointRouteBuilder,
string routePrefix,
string controllerName,
string areaName
)
#Parameters
Name | Type | Description |
---|---|---|
endpoint |
IEndpoint |
The IEndpoint |
route |
String | A String value that specifies a route prefix. |
controller |
String | A String value that specifies the controller name. |
area |
String | A String value that specifies the name of the area to register. |
#Remarks
When Web Dashboard is used within areas, you may encounter error messages like The dashboard "" is not found
. This message indicates that the ASP.NET Routing is adjusted incorrectly and Web Dashboard requests are sent to the incorrect URL. In this case, use MapDashboardRoute
overload with the areaName
parameter.