Skip to content
Joe Reynolds edited this page Sep 22, 2016 · 7 revisions

Introduction

Simple Wire-Up

At the most basic, Injection in a WebForm app can be done within the App_Start folder in the NinjectWebCommon.RegisterServices method. It should look something like this:

private static void RegisterServices(IKernel kernel)
{
    kernel.Bind<ISomeService>().To<SomeService>().InRequestScope();
}  

Binaries

Clone this wiki locally