Welcome to the Common Service Locator library

service locator 2.jpg

The Common Service Locator library contains a shared interface for service location which application and framework developers can reference. The library provides an abstraction over IoC containers and service locators. Using the library allows an application to indirectly access the capabilities without relying on hard references. The hope is that using this library, third-party applications and frameworks can begin to leverage IoC/Service Location without tying themselves down to a specific implementation.

The project contains a full test suite which validates a particular implementation of the locator meets the functional requirements. Additionally, several adapters for working with popular IoC containers will be included within the project at a future date.

Where to go next?

ItemLink
What is the rationale for this projectProject Rationale
How do I consume the interface?Consuming the Interface
How do I implement the interface?Implementing the Interface
See the API referenceAPI Reference

Service locator adapter implementations

Implementation
Castle Windsor Adapter
Spring .NET Adapter
Unity Adapter
StructureMap Adapter
Autofac Adapter
MEF Adapter (TBD)

Collaborators in alphabetical order

Special thanks for the following individuals who together brought this library to fruition. Chris Tavares is the author of the library code itself. Oren Eini authored the unit tests.
Last edited Oct 13 2008 at 7:12 AM by ctavares, version 36
Comments
DamonCarr wrote  Oct 3 2008 at 11:07 PM 
Ha! We built this... Damn....

edy wrote  Dec 15 2008 at 11:47 AM 
Hi, guys! Have you thought about service instance key as IComparable object instead of string? I think this would be much better and backward compatible with current implementations.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | CodePlex Blog | Version 2008.12.9.14291