Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the IConfigurationStore parameter in Windsor Installer?

The Install method of IWindsorInstaller has an IConfigurationStore store parameter. I can't find anywhere a code example where this parameter is actually used. What can it be used for? Can you please give me a usage example, or point me to some code where it is used?

Searching the web doesn't help, because IConfigurationStore is mentioned zillions of times, but I haven't found a single place where it was used.

Thanks!

like image 768
Ilya Kogan Avatar asked Mar 26 '11 14:03

Ilya Kogan


1 Answers

Just as the name says, it gives you access to Windsor's configuration (properties, components, parameters, service overrides, etc). I'd say configuration is more commonly used in facilities than installers, so you might want to take a look at some facilities as reference.

As a contrived example, suppose you have an installer with several components related to some web service. You might make this installer configurable WRT the service endpoint so you could define the endpoint in Castle's XML config, thus avoiding recompliation if the endpoint changes.

like image 115
Mauricio Scheffer Avatar answered Nov 09 '22 09:11

Mauricio Scheffer