This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
unknown (author)
Sat Aug 22 08:53:51 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 11 08:41:54 -0700 2009 | |
| |
Ninject.Web.Mvc.sln | Mon Mar 16 15:02:25 -0700 2009 | |
| |
Ninject.Web.Mvc.sln.cache | Mon Mar 16 14:08:31 -0700 2009 | |
| |
README.markdown | Wed Mar 18 06:02:48 -0700 2009 | |
| |
lib/ | Sat Aug 22 08:53:51 -0700 2009 | |
| |
src/ | Sat Aug 22 08:53:51 -0700 2009 |
README.markdown
This extension allows integration between the Ninject core and ASP.NET MVC projects. To use it, just make your HttpApplication (typically in Global.asax.cs) extend NinjectHttpApplication:
public class YourWebApplication : NinjectHttpApplication
{
public override void OnApplicationStarted()
{
RegisterAllControllersIn("Some.Assembly.Name");
}
public override IKernel CreateKernel()
{
return new StandardKernel(new SomeModule(), new SomeOtherModule(), ...);
// OR, to automatically load modules:
var kernel = new StandardKernel();
kernel.AutoLoadModules("~/bin");
return kernel;
}
}
Once you do this, your controllers will be activated via Ninject, meaning you can expose dependencies on their constructors (or properties, or methods) to request injections.







