CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Ninject.Configuration.CqrsModule< TAuthenticationToken, TAuthenticationTokenHelper > Class Template Reference

The main INinjectModule for use with the CQRS package that wires up many of the prerequisites for running CQRS.NET. More...

+ Inheritance diagram for Cqrs.Ninject.Configuration.CqrsModule< TAuthenticationToken, TAuthenticationTokenHelper >:

Public Member Functions

 CqrsModule (IConfigurationManager configurationManager=null)
 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 SqlLogger will be bootstrapped by default, otherwise the ConsoleLogger will be bootstrapped by default. "Cqrs.RegisterDefaultConfigurationManager": If set true the ConfigurationManager will be registered. If you want to use the Azure one leave this as false (the default) and register it yourself. "Cqrs.RegisterDefaultSnapshotStrategy": If set true the DefaultSnapshotStrategy<TAuthenticationToken> will be registered. "Cqrs.RegisterDefaultSnapshotAggregateRepository": If set true the SnapshotRepository<TAuthenticationToken> will be registered. "Cqrs.RegisterDefaultSnapshotBuilder": If set true the DefaultSnapshotBuilder will be registered. More...
 
 CqrsModule (bool setupForWeb, bool setupForSqlLogging, bool registerDefaultConfigurationManager=false, bool registerDefaultSnapshotAggregateRepository=true, bool registerDefaultSnapshotStrategy=true, bool registerDefaultSnapshotBuilder=true)
 Instantiate a new instance of the CqrsModule<TAuthenticationToken,TAuthenticationTokenHelper>. More...
 
override void Load ()
 Loads the module into the kernel. More...
 
virtual void RegisterFactories ()
 Register the all factories More...
 
virtual void RegisterLoggerComponents ()
 Register the all components for the ILogger More...
 
virtual void RegisterRepositories ()
 Register the all repositories More...
 
virtual void RegisterQueryBuilders ()
 Register the all query builders More...
 
virtual void RegisterServices ()
 Register the all services More...
 
virtual void RegisterCaching ()
 Register the all caching stuffs More...
 
virtual void RegisterCqrsRequirements ()
 Register the all Cqrs requirements More...
 
- Public Member Functions inherited from Cqrs.Ninject.Configuration.ResolvableModule
bool IsRegistered< T > ()
 Indicates if the provided T is already registered or not. More...
 
bool IsRegistered (Type type)
 Indicates if the provided type is already registered or not. More...
 

Properties

bool SetupForWeb [get]
 Indicates that web based wire-up is required rather than console, WPF or winforms based wire-up.s More...
 
bool SetupForSqlLogging [get]
 Indicates that logging should be configured for SQL Server rather than console. More...
 
bool RegisterDefaultConfigurationManager [get]
 Indicates that the ConfigurationManager should be registered automatically. More...
 
bool RegisterDefaultSnapshotStrategy [get]
 Indicates that the ISnapshotStrategy<TAuthenticationToken> should be registered automatically. More...
 
bool RegisterDefaultSnapshotAggregateRepository [get]
 Indicates that the ISnapshotAggregateRepository<TAuthenticationToken> should be registered automatically. More...
 
bool RegisterDefaultSnapshotBuilder [get]
 Indicates that the ISnapshotBuilder should be registered automatically. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Cqrs.Ninject.Configuration.ResolvableModule
virtual T Resolve< T > ()
 Resolves instances for the specified T . More...
 
virtual object Resolve (Type type)
 Resolves instances for the specified type . More...
 

Detailed Description

The main INinjectModule for use with the CQRS package that wires up many of the prerequisites for running CQRS.NET.

Template Parameters
TAuthenticationTokenThe Type of the authentication token.
TAuthenticationTokenHelperThe Type of the authentication token helper.
Type Constraints
TAuthenticationTokenHelper :class 
TAuthenticationTokenHelper :IAuthenticationTokenHelper<TAuthenticationToken>