![]() |
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.
|
Configure and start command and event handlers in a host More...
Inheritance diagram for Cqrs.Hosts.CoreHost< TAuthenticationToken >:Public Member Functions | |
| virtual void | Run (Action handlerRegistation=null) |
| Calls Prepare, handlerRegistation and then Start More... | |
Protected Member Functions | |
| CoreHost () | |
| Instantiate a new instance of a CoreHost<TAuthenticationToken> More... | |
| virtual void | ConfigureTelemetry () |
| When overridden, allows you to configure Telemetry More... | |
| virtual void | PrepareSecurityProtocol () |
| Sets the ServicePointManager.SecurityProtocol to SecurityProtocolType.Tls. You might want to override this to .net 4.5 and above to SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls More... | |
| virtual void | Prepare () |
| Prepare the host before registering handlers and starting the host. More... | |
| abstract void | ConfigureDefaultDependencyResolver () |
| Configure the DependencyResolver. More... | |
| virtual void | Start () |
| Start the host post preparing and registering handlers. More... | |
| virtual void | ManuallyRegisterEventHandler< TMessage > (Action< TMessage > eventHandler, bool holdMessageLock=true) |
| Register an event handler that will listen and respond to events. More... | |
| virtual void | ManuallyRegisterCommandHandler< TMessage > (Action< TMessage > commandHandler, bool holdMessageLock=true) |
| Register an command handler that will listen and respond to commands. More... | |
| virtual void | StartBusRegistrar () |
| Start the BusRegistrar by calling BusRegistrar.Register(System.Type[]) passing HandlerTypes More... | |
Properties | |
| abstract IConfigurationManager | ConfigurationManager [get] |
| The IConfigurationManager that can be use before the DependencyResolver.Current is set. More... | |
| Type[] | HandlerTypes [get, set] |
| Each Type will be traced back to it's assembly, and that assembly will be scanned for other handlers to auto register. More... | |
| IEventReceiver< TAuthenticationToken > | EventBus [get] |
| The IEventReceiver that will be configured to receive events. More... | |
| ICommandReceiver< TAuthenticationToken > | CommandBus [get] |
| The ICommandReceiver that will be configured to receive commands. More... | |
| string | TelemetryName [get, set] |
| The hosts telemetry name if telemetry is configured More... | |
| ICorrelationIdHelper | CorrelationIdHelper [get] |
| The ICorrelationIdHelper that will be used when starting and stopping the host. More... | |
| ILogger | Logger [get] |
| The ILogger that will be used when starting and stopping the host. More... | |
Configure and start command and event handlers in a host