EventStore - reading events by creation time

If I want to read the EventStore stream ( http://geteventstore.com/ ) eg. event number 123, I just use ReadStreamEventsForwardAsync and set the position of the original stream (in this case, the value is 123).

I am wondering if there is a similar function to allow the user to read all events created after a specified date (for example, I want all events to be generated after 20-Dec-2014).

A naive implementation should be to simply read the whole stream and then filter the result on the ResolvedEvent "Created" field.

Edit: I just implemented a naive solution and noticed that it is causing the new function to return "ResolvedEvent []" instead of "StreamEventsSlice", thus introducing unnecessary inconsistency.

+3


source to share





All Articles