Class CqrsWebHost<TAuthenticationToken, TAuthenticationTokenHelper, TWebHostModule>
Execute command and event handlers in a WCF Host using Ninject
Inheritance
Inherited Members
Namespace: Cqrs.Ninject.Azure.Wcf
Assembly: Cqrs.Ninject.Azure.Wcf.dll
Syntax
public class CqrsWebHost<TAuthenticationToken, TAuthenticationTokenHelper, TWebHostModule> : TelemetryCoreHost<TAuthenticationToken> where TAuthenticationTokenHelper : class, IAuthenticationTokenHelper<TAuthenticationToken> where TWebHostModule : WebHostModule, new ()
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | |
TAuthenticationTokenHelper | |
TWebHostModule |
Methods
ConfigureDefaultDependencyResolver()
Configure the DependencyResolver.
Declaration
protected override void ConfigureDefaultDependencyResolver()
Overrides
GetCommandBusModules()
A collection of Ninject.Modules.INinjectModule that configure the Azure Servicebus as a command bus as both ICommandPublisher<TAuthenticationToken> and ICommandReceiver<TAuthenticationToken>.
Declaration
protected virtual IEnumerable<INinjectModule> GetCommandBusModules()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Ninject.Modules.INinjectModule> |
GetEventBusModules()
A collection of Ninject.Modules.INinjectModule that configure the Azure Servicebus as a event bus as both IEventPublisher<TAuthenticationToken> and IEventReceiver<TAuthenticationToken> If the app setting Cqrs.Host.EnableEventReceiving is "false" then no modules will be returned.
Declaration
protected virtual IEnumerable<INinjectModule> GetEventBusModules()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Ninject.Modules.INinjectModule> |
GetEventStoreModules()
A collection of Ninject.Modules.INinjectModule that configure SQL server as the IEventStore<TAuthenticationToken>
Declaration
protected virtual IEnumerable<INinjectModule> GetEventStoreModules()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Ninject.Modules.INinjectModule> |
GetSupplementaryModules()
A collection of Ninject.Modules.INinjectModule that are required to be loaded
Declaration
protected virtual IEnumerable<INinjectModule> GetSupplementaryModules()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Ninject.Modules.INinjectModule> |