Handling SharePointServiceLocator failures due to caching

The SharePointServiceLocator in the patterns and practices SharePoint library implements a dependency injection pattern for decoupling service providers from service consumers.  It achieves this by mapping an interface to an implementing class.  The consumer of the implementation only has a dependency on the interface, and the service locator has the responsiblity to construct an instance…