-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDashboardConfig.vb
23 lines (18 loc) · 991 Bytes
/
DashboardConfig.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Imports Microsoft.VisualBasic
Imports System.Web.Routing
Imports DevExpress.DashboardWeb
Imports DevExpress.DashboardWeb.Mvc
Namespace MvcThrowCustomExceptionDashboardErrorToast
Public Class DashboardConfig
Public Shared Sub RegisterService(ByVal routes As RouteCollection)
'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" })
End Sub
End Class
End Namespace