Hi
So… I have am trying to wrap my head around GES again!
I have a solution that has 2 consol apps in.
The first - mainly taken from the repository test project:
https://gist.github.com/wayne-o/e1d6daf85b9525364f5f
this creates an aggregate, raises some events and saves it. All good so far. I have some streams with names like:
testAggregate-623b55e410c74eb2b2874198c462c36c
The second is the subscriber:
https://gist.github.com/wayne-o/686aa4207c43abb692bf
I want this to listen for events coming out of the eventstore so that i can pretend to update a readmodel or two.
My understanding is that to do this I would subscribe to a stream.
Issue is SubscribeToAll yields an access denied error
SubscribeToStream wants the name of a stream…
which is troublesome as the stream names being created are agregateName-Id - so there appears to be a stream per aggregate instance? Can’t I just subscribe to all testAggregate or is there a way to subscibe to the events themselves?
Can anyone advice me on what my next steps should be?
I want to subscribe to all WoftamEvents so that I can update the WoftamReadModel or whatever I call it…