1

Has anybody tried to use StructureMap for IoC with Rhino.Commons?

Thanks

McDowell
  • 107,573
  • 31
  • 204
  • 267
fromano
  • 45
  • 4

2 Answers2

1

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?

Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275
  • Sorry for the late answer, I was looking to use Rhino.Security and repository to implement a role based access MVC app. – fromano Mar 03 '09 at 19:11
  • Were you able to use it with StructureMap? IIRC there's a recent thread on the mailing list about using CommonServiceLocator. – Mauricio Scheffer Mar 03 '09 at 20:24
0

Looking at the source code I don't see how it would be possible. The IoC.Initialize() method takes in an IWindsorContainer.

Scott Muc
  • 2,873
  • 27
  • 38