You dont need to look at the code, just use subscribetostreamfrom and
it handles this for you.
"On a separate, but semi-related topic, how do you generate models
that track things late in the stream? Getting a list of current things
is easy, add a model on the Create event, and remove it on the Deleted
event. But how do you catch the opposite? For example, a list of
disabled Users, or retired products? The three ways I've come up with
is keep a read model of all Users and just filter on disabled, or
listen for the disabled event and then read that streams event to
build the model, or listen for the disabled event, and source the
models data from an existing read model."
Or keep intermediary state along the way for the second option as
opposed to re-reading later.
On Sun, Feb 26, 2017 at 7:43 PM, Bennie Copeland