-
Notifications
You must be signed in to change notification settings - Fork 2
/
DashboardConfig.vb
19 lines (16 loc) · 974 Bytes
/
DashboardConfig.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Imports System.Web.Routing
Imports DevExpress.DashboardWeb
Imports DevExpress.DashboardWeb.Mvc
Imports DevExpress.DataAccess.Web
Public Class DashboardConfig
Public Shared Sub RegisterService(routes As RouteCollection)
routes.MapDashboardRoute("api/dashboard", "DefaultDashboard")
' Uncomment this line to save dashboards to the App_Data folder.
DashboardConfigurator.Default.SetDashboardStorage(New DashboardFileStorage("~/App_Data/Dashboards"))
' 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.
'Dim dataSourceStorage = New DataSourceInMemoryStorage()
'DashboardConfigurator.Default.SetDataSourceStorage(dataSourceStorage)
DashboardConfigurator.Default.SetConnectionStringsProvider(New ConfigFileConnectionStringsProvider())
End Sub
End Class