CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Ninject.Configuration.NinjectDependencyResolver Class Reference

An implementation of IDependencyResolver using Ninject More...

+ Inheritance diagram for Cqrs.Ninject.Configuration.NinjectDependencyResolver:

Public Member Functions

 NinjectDependencyResolver (IKernel kernel)
 Instantiates a new instance of NinjectDependencyResolver More...
 
virtual T Resolve< T > ()
 Calls IResolutionRoot.Resolve More...
 
virtual object Resolve (Type serviceType)
 Calls IResolutionRoot.Resolve More...
 

Static Public Member Functions

static void Start (IKernel kernel=null, bool prepareProvidedKernel=false)
 Starts the NinjectDependencyResolver More...
 
static void PrepareKernel (IKernel kernel)
 Calls IKernel.Load(IEnumerable<INinjectModule>) passing in ModulesToLoad More...
 

Static Public Attributes

static IList< INinjectModule > ModulesToLoad = new List<INinjectModule>()
 A collection of INinjectModule instances to load when we call PrepareKernel More...
 

Protected Member Functions

virtual void BindDependencyResolver ()
 

Properties

static IDependencyResolver Current [get, protected set]
 The current instance of the IDependencyResolver. More...
 
IKernel Kernel [get]
 The inner Ninject IKernel used by this instance. More...
 
static Func< IKernel, NinjectDependencyResolverDependencyResolverCreator [get, set]
 A user supplied Func<TResult> that will be called during Start to create and populate Current. More...
 

Detailed Description

An implementation of IDependencyResolver using Ninject