Unplanned
Last Updated: 18 Mar 2021 09:59 by ADMIN
jura
Created on: 18 Mar 2021 09:58
Type: Feature Request
1
Monitor ReportServiceConfiguration.ReportingEngineConfiguration changes

I have configured Asp.NET Core 5 IReportServiceConfiguration in DI for ReportsControllerBase with ReportServiceConfiguration.ReportingEngineConfiguration set to IConfiguration with custom IConfigurationProvider providing ConnectionStrings which can change in runtime so the provider notifies about configuration changes via IChangeToken.

But the updated ConnectionStrings are not propagated to the service.

To fix it, I have made this hack:

                reportEngineConfigurationChange = engineConfiguration.OnChange(() =>
                {
                    telerikConfigurationManagerReset();
                    configuration.ReportingEngineConfiguration = engineConfiguration;
                });

which listens to IConfiguration changes and calls TelerikConfigurationManager.Reset (via reflection) and sets configuration again.

It would be nice if this would be implemented on Your side, please.

 

0 comments