Register the same Service multiple times, from XML and Installer (to allow overriding them from XML)

2015-04-20 Thread BhaaL DoesNotUseGplus
In my application, i use the following Install call: container.Install(Configuration.FromAppConfig(), FromAssembly.This()); In the most preferable case, the app.config has an empty configuration block, with everything else being done by Installer classes. However, one reason why I'd like the

Re: Register the same Service multiple times, from XML and Installer (to allow overriding them from XML)

2015-06-11 Thread BhaaL DoesNotUseGplus
Sorry for the delay, mail notification apparently got lost and I just revisited that issue... Well, not really, unfortunately this doesn't work for me. It should, as you said; but instead I get this exception thrown (with no mention of my installer class):

Re: Register the same Service multiple times, from XML and Installer (to allow overriding them from XML)

2016-11-10 Thread BhaaL DoesNotUseGplus
Could you elaborate on that? The problem is that I already have multiple implementations for some of the services (which is: the ones that do have names; and therefore cause problems with this approach) - and they're named so I can use a custom IHandlerSelector to pick the right one for a given