I am new to ninject using ninject 2.0. My application is hosted in asp.net mvc.
Now i don't know how to access kernel created in my class library.
I think i should create kernel in global.aspx and load all modules in it. But how can i make it available throughout application?
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
IKernel kernel = new StandardKernel(new ServiceModule());
}
Where should Kernel created above go? and how to access it?