Quantcast
Viewing all articles
Browse latest Browse all 7205

How to define a custom IConnectionStorageService in DashboardDesigner to filter out unnecessary connections from an app.config file  

This example demonstrates how to implement a custom IConnectionStorageService and use it instead of the default one in the data source wizard. This service implementation allows only getting connection parameters from the DashboardDesigner.CustomDataConnection collection. To load the custom service instead of the default one, execute the following code:

[C#]
dashboardDesigner1.ServiceContainer.RemoveService(typeof(IConnectionStorageService));dashboardDesigner1.ServiceContainer.AddService(typeof(IConnectionStorageService),newCustomConnectionStorageService(dashboardDesigner1));

Viewing all articles
Browse latest Browse all 7205

Trending Articles