C# Class Ninject.Web.WebApi.NinjectDependencyScope

Dependency scope implementation for ninject.
Inheritance: IDependencyScope
Mostrar archivo Open project: ninject/Ninject.Web.WebApi

Public Methods

Method Description
GetService ( Type serviceType ) : object

Gets the service of the specified type.

GetServices ( Type serviceType ) : IEnumerable

Gets the services of the specifies type.

NinjectDependencyScope ( IResolutionRoot resolutionRoot ) : System

Initializes a new instance of the NinjectDependencyScope class.

Method Details

GetService() public method

Gets the service of the specified type.
public GetService ( Type serviceType ) : object
serviceType System.Type The type of the service.
return object

GetServices() public method

Gets the services of the specifies type.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type The type of the service.
return IEnumerable

NinjectDependencyScope() public method

Initializes a new instance of the NinjectDependencyScope class.
public NinjectDependencyScope ( IResolutionRoot resolutionRoot ) : System
resolutionRoot IResolutionRoot The resolution root.
return System