-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDashboardConfig.vb
22 lines (17 loc) · 953 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
Imports Microsoft.VisualBasic
Imports DevExpress.DashboardWeb.Mvc
Imports System.Web.Routing
Namespace MvcCustomTextForInternalDashboardErrors
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() { "MvcCustomTextForInternalDashboardErrors" })
End Sub
End Class
End Namespace