In version 1.3 you can use contaier[cmpKey] to extract a component with all dependency if any. into new release (2.5) that accessor is obsolete and none of the options provided by Resolve Method really match with old one. I might figure out Type by key/id, but I wonder if there's still a supported why to extract a cmp by key/id only
How to extract component from WindsorContainer by key/id only
732 Views Asked by Crixo At
2
Actually better option than what Mauricio suggested (although there's nothing wrong with his solution except the
object
argument is a bit confusing) isIn Windsor when key is provided it has the priority and components are looked up by the key solely. The type is used only as a syntactic sugar to avoid casting.