Class SimplifiedNinjectStartUp<THostModule>
A start-up class.
Inheritance
System.Object
SimplifiedNinjectStartUp<THostModule>
Namespace: Cqrs.Ninject.Configuration
Assembly: Cqrs.Ninject.dll
Syntax
public class SimplifiedNinjectStartUp<THostModule> : object where THostModule : INinjectModule, new ()
Type Parameters
Name | Description |
---|---|
THostModule | The base |
Constructors
SimplifiedNinjectStartUp(IConfigurationManager)
Instantiates a new instance of SimplifiedNinjectStartUp<THostModule>
Declaration
public SimplifiedNinjectStartUp(IConfigurationManager configurationManager)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationManager | configurationManager |
Properties
ConfigurationManager
The IConfigurationManager that will be used to resolve configuration settings in CreateKernel(). It is not used elsewhere.
Declaration
protected IConfigurationManager ConfigurationManager { get; }
Property Value
Type | Description |
---|---|
IConfigurationManager |
Methods
AddSupplementryModules()
When overridden allows for the addition of any additional
Declaration
protected virtual void AddSupplementryModules()
CreateKernel()
Creates the kernel that will manage your application.
Declaration
public virtual IKernel CreateKernel()
Returns
Type | Description |
---|---|
IKernel | The created kernel. |
CreateNinjectKernel()
Create a new
Declaration
protected virtual StandardKernel CreateNinjectKernel()
Returns
Type | Description |
---|---|
StandardKernel |
StartResolver(IKernel)
Calls Start(IKernel, Boolean)
Declaration
protected virtual void StartResolver(IKernel kernel)
Parameters
Type | Name | Description |
---|---|---|
IKernel | kernel |