-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDashboardConfig.cs
25 lines (20 loc) · 1.02 KB
/
DashboardConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Web.Routing;
using DevExpress.DashboardWeb;
using DevExpress.DashboardWeb.Mvc;
namespace MvcThrowCustomExceptionDashboardErrorToast
{
public class DashboardConfig
{
public static void RegisterService(RouteCollection routes)
{
//routes.MapDashboardRoute();
// Uncomment this line to save dashboards to the App_Data folder.
//DashboardConfigurator.Default.SetDashboardStorage(new DashboardFileStorage(@"~/App_Data/"));
// Uncomment these lines to create an in-memory storage of dashboard data sources. Use the DataSourceInMemoryStorage.RegisterDataSource
// method to register the existing data source in the created storage.
//var dataSourceStorage = new DataSourceInMemoryStorage();
//DashboardConfigurator.Default.SetDataSourceStorage(dataSourceStorage);
routes.MapDashboardRoute("dashboardDesigner", "CustomDashboard", new string[] { "MvcThrowCustomExceptionDashboardErrorToast" });
}
}
}