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.Configuration.SampleRuntime< TAuthenticationToken, TCommandHanderOrEventHandler > Class Template Reference

A sample runtime to use in proof of concept projects to get something running very quickly. Doesn't save anything. All data is lost when recycled and may cause terrible memory usage. More...

+ Inheritance diagram for Cqrs.Configuration.SampleRuntime< TAuthenticationToken, TCommandHanderOrEventHandler >:

Classes

class  MockDependencyResolver
 Provides an ability to resolve a minimum known set of objects. More...
 

Public Member Functions

 SampleRuntime ()
 Instaiance a new instance of the SampleRuntime<TAuthenticationToken,TCommandHanderOrEventHandler> More...
 
virtual void PrintStatsticsToConsole ()
 Prints out the statistics of this run such as the number of event raised to the Console. More...
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Protected Member Functions

virtual void SetEventStoreCreator ()
 Sets the EventStoreCreator to use InProcessEventStore<TAuthenticationToken> More...
 
virtual void StartDependencyResolver ()
 Starts the IDependencyResolver. More...
 
virtual void RegisterHandlers ()
 Registers the all IEventHandler and ICommandHandle. More...
 

Properties

static Func< IDependencyResolver, IEventStore< TAuthenticationToken > > EventStoreCreator [get, set]
 The Func<TResult> used to create the IEventStore<TAuthenticationToken> More...
 
static Func< IDependencyResolver, Type, object > CustomResolver [get, set]
 A custom dependency resolver. More...
 

Detailed Description

A sample runtime to use in proof of concept projects to get something running very quickly. Doesn't save anything. All data is lost when recycled and may cause terrible memory usage.

Template Parameters
TAuthenticationTokenThe Type of authentication token.
TCommandHanderOrEventHandlerThe Type of any ICommandHandle or IEventHandler.