Service Locator Extension

Th Service Locator extension of Bootstrapper will initialize Microsoft's Common Service Locator to whatever container you are using.

Installation

You can install the Service Locator extensions via nuget over here.

Using the extension

To use the extension simply write this code:
Bootstrapper.With.ServiceLocator().Start();
var myInstance = ServiceLocator.Current.GetInstance<IMyType>();

Last edited Mar 3, 2013 at 6:58 AM by luisbocaletti, version 4

Comments

No comments yet.