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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With