What's the best way to set Radzen global properties from the app configuration?
I thought of creating and initializing them from the Home (start) page. - generated code:
Globals.AppVersion = Startup.Configuration["myApp:Version"];
But the Configuration object is not static so only accessible from the app Startup object instance and I don't know how to get a reference to that outside of startup.cs.
Could I add a custom method for the Globals service e.g. in Globals.Custom.cs:
public GlobalsService(IConfiguration config) {this.Configuration = config;}
then implement OnConfigureServices in a Startup.Custom.cs to remove and re-add the using the new constructor, which also sets all the global properties?
But then I would have to define all the global properties myself in the custom module, since in Radzen pages there's no way to declare a property without giving it a value. Would the Radzen IDE have access to global properties defined in this way?