It would be a really handy addition to be able to request if the container has a registration for for a particular situation. The specific need I have at the moment is that I want to be able to ask for a registration by name; if no specific registration exists for that name then I want to use the default, nameless registration. In this case it's all about using IoC to provide testability; I want to register a default container for an object that performs access to the database and then override this during testing with specific classes that fake the data access results I need for each test.
I have created a sample class that shows the situation I am trying to support through the service locator; I can do this with Unity but can't do it in an agnostic way through CommonServiceLocator
I have created a sample class that shows the situation I am trying to support through the service locator; I can do this with Unity but can't do it in an agnostic way through CommonServiceLocator