Posted: 17 Aug 2017 9:17 EDT Last activity: 11 Sep 2017 4:26 EDT
Accessing Configuration Items during Runtime
Hi, we have a solution with 10 different configuration items, each with a different value to be used at runtime. Once the solution is running I want to be able to know which configuration item is running. I have tried calling the IsRunning Property for the Configuration Item but this doesn't pin point the active configuration, as at runtime all the configurations are hitting true on this property.
I need to know which configuration item is active so I can call a related file which has the same name as the configuration item.
Any advice on how to access Configuration Item properties and methods would be appreciated.
I do not think the Configuration Item is designed for you to know which Configuration is being used at Runtime. In each Configuration you have set different values to use. So I imagine that you will know which configuration is being used by checking one of the values that you have set.
Edit: Adding onto this... as an example, you have two configurations where the StartPage for WebAdapter1 is different. For configuration one, the StartPage is website.html/UAT/. For configuration two, the StartPage is website.html/Production/. By checking the StartPage property, you would know which configuration is being used.
Hi vegam, thanks for taking the time to offer, sorry I didn't get a chance to reply sooner, but something more pressing came up. Your solution seems sound so I will give it a shot some time soon. Thanks.
Hi Thomas, thanks for taking the time to offer a solution, sorry I didn't get a chance to reply sooner, but something more pressing came up. I like the sound of your solution, so I will be sure to give it a shot some time soon. Thanks.