C# Class Paralect.Transitions.InMemoryTransitionRepository

Inheritance: ITransitionRepository
ファイルを表示 Open project: paralect/Paralect.Domain Class Usage Examples

Public Methods

Method Description
EnsureIndexes ( ) : void
GetTransitions ( ) : List

Get all transitions ordered ascendantly by Timestamp of transiton Should be used only for testing and for very simple event replying

GetTransitions ( string streamId, int fromVersion, int toVersion ) : List
RemoveStream ( string streamId ) : void
RemoveTransition ( string streamId, int version ) : void
SaveTransition ( Transition transition ) : void

Method Details

EnsureIndexes() public method

public EnsureIndexes ( ) : void
return void

GetTransitions() public method

Get all transitions ordered ascendantly by Timestamp of transiton Should be used only for testing and for very simple event replying
public GetTransitions ( ) : List
return List

GetTransitions() public method

public GetTransitions ( string streamId, int fromVersion, int toVersion ) : List
streamId string
fromVersion int
toVersion int
return List

RemoveStream() public method

public RemoveStream ( string streamId ) : void
streamId string
return void

RemoveTransition() public method

public RemoveTransition ( string streamId, int version ) : void
streamId string
version int
return void

SaveTransition() public method

public SaveTransition ( Transition transition ) : void
transition Transition
return void