C# Class Catalogue.Web.Injection.NinjectScope

This is needed at the moment to hook up ninject with web api v4. http://www.peterprovost.org/blog/2012/06/19/adding-ninject-to-web-api
Inheritance: IDependencyScope
Show file Open project: jncc/topcat

Protected Properties

Property Type Description
resolutionRoot IResolutionRoot

Public Methods

Method Description
Dispose ( ) : void
GetService ( Type serviceType ) : object
GetServices ( Type serviceType ) : IEnumerable
NinjectScope ( IResolutionRoot kernel ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object

GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable

NinjectScope() public method

public NinjectScope ( IResolutionRoot kernel ) : System
kernel IResolutionRoot
return System

Property Details

resolutionRoot protected property

protected IResolutionRoot resolutionRoot
return IResolutionRoot