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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.