1

The Common Service Locator is a great interface to program against for retrieving registered instances in an IoC container.

I've built a convention-based tool that registers instances with an IoC container, and I want it to be container agnostic.

Is there any project that attempts to create a standard way of registering instances with an IoC container so that each IoC provider can simply develop an adapter?

If not, I can probably get by with a delegate.

Jason Young
  • 3,683
  • 4
  • 32
  • 39
  • Similar question is here, but different use case: http://stackoverflow.com/questions/6238431/common-service-registry?rq=1 – Jason Young Feb 07 '14 at 16:14
  • It's impossible to define an abstraction that is of any use, since registration is where the containers differ the most. – Steven Feb 07 '14 at 16:16
  • Impossible? Really? In my case I just want to map a type to an instance. That's why I can fall back to a delegate if necessary. – Jason Young Feb 07 '14 at 16:42

0 Answers0