Can I get Castle Windsor to complain when I try to Resolve a single component which is multiply registered?

Yes, Windsor will by default use the first component as default for any given service and it not throwing but working like that is a really powerful feature used in some advanced scenarios like decorators, of chain of responsibility pattern.

You can create an implementation of IHandlerSelector that has an opinion about resolving IThings, throwing if more than one handler is available for your IThing service.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions