C# Class paramore.brighter.commandprocessor.eventsourcing.Attributes.UseCommandSourcingAsyncAttribute

Class UseAsyncCommandSourcingAttribute. We use this attribute to indicate that we want to use Event Sourcing, with async support, where the application state is the system of record but we want to store the commands that led to the current application state, so that we can rebuild application state or recreate commands See Martin Fowler Event Sourcing for more on this approach.
Inheritance: RequestHandlerAttribute
Mostra file Open project: iancooper/Paramore

Public Methods

Method Description
GetHandlerType ( ) : Type

Gets the type of the handler.

UseCommandSourcingAsyncAttribute ( int step, HandlerTiming timing = HandlerTiming.Before ) : System

Initializes a new instance of the UseCommandSourcingAsyncAttribute class.

Method Details

GetHandlerType() public method

Gets the type of the handler.
public GetHandlerType ( ) : Type
return System.Type

UseCommandSourcingAsyncAttribute() public method

Initializes a new instance of the UseCommandSourcingAsyncAttribute class.
public UseCommandSourcingAsyncAttribute ( int step, HandlerTiming timing = HandlerTiming.Before ) : System
step int The step.
timing HandlerTiming The timing.
return System