Rhino.Commons with StructureMap
-
22-07-2019 - |
Question
Has anybody tried to use StructureMap for IoC with Rhino.Commons?
Thanks
Solution
Windsor is deeply rooted in Rhino Commons, a search for "Windsor" in the source code gives back 45 files. Binsor, for example, is very specific to Windsor. However, it shouldn't be very difficult to refactor some parts of Rhino.Commons to use CommonServiceLocator instead of Windsor, effectively making it container-provider-independent.
It's unlikely that you want all of Rhino.Commons, so my question to you is: what part(s) of Rhino.Commons do you need?
OTHER TIPS
Looking at the source code I don't see how it would be possible. The IoC.Initialize() method takes in an IWindsorContainer.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow