C# Class Ninject.Web.NinjectHttpModule

An IHttpModule that injects dependencies into pages and usercontrols.
Inheritance: DisposableObject, IHttpModule
ファイルを表示 Open project: ninject/Ninject.Web

Public Methods

Method Description
Init ( System.Web.HttpApplication context ) : void

Initializes a module and prepares it to handle requests.

Private Methods

Method Description
InjectDataBoundControl ( object sender, EventArgs e ) : void

Injects a data bound control.

InjectUserControls ( Control parent, bool skipDataBoundControls ) : void

Search for usercontrols within the parent control and inject their dependencies using KernelContainer.

OnPreRequestHandlerExecute ( object sender, EventArgs e ) : void

Injects dependencies into web pages and subscribes to their InitComplete Event to inject usercontrols with their dependencies.

Method Details

Init() public method

Initializes a module and prepares it to handle requests.
public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication A that provides access to the methods, properties, and events common to all application objects within an ASP.NET application
return void