This project is read-only.


Shared Service Locator


Add support for component-level service locators and a shared service locator that the component-level locators call back to.


flanakin wrote Jan 23, 2009 at 11:50 PM

My current thoughts to solve this problem is to use a ServiceLocatorBase<T> class, which implements the core locator capabilities. The type T would represent any type that uniquely identifies that interface. This type will most likely be a nested interface within the component-level service locator instance. For instance...

internal class ServiceLocator : ServiceLocatorBase<IMyProjectServiceLocator>
internal interface IMyProjectServiceLocator { }

By convention, this instance will have a static Instance property, which refers to the only instance of the locator. There would also be a static constructor that would register all the known container values.

wrote Feb 27, 2009 at 3:10 AM

Fixed on changeset 13086

wrote Feb 27, 2009 at 3:10 AM

wrote Feb 12, 2013 at 11:45 PM

wrote May 15, 2013 at 12:12 AM

wrote May 15, 2013 at 12:12 AM

wrote Jun 12, 2013 at 1:38 AM