C# Class Prototype.Platform.Domain.Transitions.Mongo.MongoTransitionRepository

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

Public Methods

Method Description
AppendTransition ( Transition transition ) : void
CountTransitions ( ) : System.Int64
EnsureIndexes ( ) : void
GetTransitions ( ) : IEnumerable

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

GetTransitions ( int startIndex, int count ) : IEnumerable
GetTransitions ( string streamId, int fromVersion, int toVersion ) : List
MongoTransitionRepository ( String connectionString ) : System
RemoveStream ( String streamId ) : void
RemoveTransition ( string streamId, int version ) : void

Private Methods

Method Description
RequiredIndexes ( ) : IndexKeysBuilder>.Dictionary

Method Details

AppendTransition() public method

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

CountTransitions() public method

public CountTransitions ( ) : System.Int64
return System.Int64

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 ( ) : IEnumerable
return IEnumerable

GetTransitions() public method

public GetTransitions ( int startIndex, int count ) : IEnumerable
startIndex int
count int
return IEnumerable

GetTransitions() public method

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

MongoTransitionRepository() public method

public MongoTransitionRepository ( String connectionString ) : System
connectionString String
return System

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