Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Usage of Container out of Controller
public class MyProvider
public IRepository MyRepository {get;set;}
public MyProvider()
// Registration made in AppHost as container.Register<IRepository>(c => new MyRepository ());
MyRepository= new Container().Resolve(IRepository); // a)Concrete Service Locator
MyRepository= Funq.Container.Resolve(IRepository); // b)Service Locator check this
// c) Another way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.