Class CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>
The main
Inheritance
Inherited Members
Namespace: Cqrs.Ninject.Configuration
Assembly: Cqrs.Ninject.dll
Syntax
public class CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper> : ResolvableModule where TAuthenticationTokenHelper : class, IAuthenticationTokenHelper<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The |
TAuthenticationTokenHelper | The |
Constructors
CqrsModule(IConfigurationManager)
Instantiate a new instance of the CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper> that uses the provided configurationManager
to read the following configuration settings:
"Cqrs.SetupForWeb": If set to true the system will be configured for hosting in IIS or some other web-server that provides access to System.Web.HttpContext.Current.
"Cqrs.SetupForSqlLogging": If set to true the
Declaration
public CqrsModule(IConfigurationManager configurationManager = null)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationManager | configurationManager | The IConfigurationManager to use, if one isn't provided then ConfigurationManager is instantiate, used and then disposed. |
CqrsModule(Boolean, Boolean, Boolean)
Instantiate a new instance of the CqrsModule<TAuthenticationToken, TAuthenticationTokenHelper>.
Declaration
public CqrsModule(bool setupForWeb, bool setupForSqlLogging, bool registerDefaultConfigurationManager = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | setupForWeb | Set this to true if you will host this in IIS or some other web-server that provides access to System.Web.HttpContext.Current. |
System.Boolean | setupForSqlLogging | Set this to true to use |
System.Boolean | registerDefaultConfigurationManager | Set this to true to use ConfigurationManager. If you want to use the Azure one leave this as false (the default) and register it yourself. |
Properties
RegisterDefaultConfigurationManager
Indicates that the ConfigurationManager should be registered automatically.
Declaration
protected bool RegisterDefaultConfigurationManager { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SetupForSqlLogging
Indicates that logging should be configured for SQL Server rather than console.
Declaration
protected bool SetupForSqlLogging { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SetupForWeb
Indicates that web based wire-up is required rather than console, WPF or winforms based wire-up.s
Declaration
protected bool SetupForWeb { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Load()
Loads the module into the kernel.
Declaration
public override void Load()
RegisterAutomapperComponents()
Register the all
Declaration
public virtual void RegisterAutomapperComponents()
RegisterCaching()
Register the all caching stuffs
Declaration
public virtual void RegisterCaching()
RegisterCqrsRequirements()
Register the all Cqrs requirements
Declaration
public virtual void RegisterCqrsRequirements()
RegisterFactories()
Register the all factories
Declaration
public virtual void RegisterFactories()
RegisterLoggerComponents()
Register the all components for the
Declaration
public virtual void RegisterLoggerComponents()
RegisterQueryBuilders()
Register the all query builders
Declaration
public virtual void RegisterQueryBuilders()
RegisterRepositories()
Register the all repositories
Declaration
public virtual void RegisterRepositories()
RegisterServices()
Register the all services
Declaration
public virtual void RegisterServices()