gregoryyoung/m-r

EventDescriptor purpose

eagrzn opened this issue · 4 comments

Thanks for great code!
I have question: what purpose of internal struct EventDescriptor?
https://github.com/gregoryyoung/m-r/blob/master/SimpleCQRS/EventStore.cs#L17
Why I should store some kind of event envelope instead of event itself?

https://github.com/gregoryyoung/m-r/blob/master/SimpleCQRS/EventStore.cs#L37

There are things not exposed from event?

On Wed, Apr 22, 2015 at 11:42 AM, Evgeniy Gryaznov <notifications@github.com

wrote:

Thanks for great code!
I have question: what purpose of internal struct EventDescriptor?

https://github.com/gregoryyoung/m-r/blob/master/SimpleCQRS/EventStore.cs#L17
Why I should store some kind of event envelope instead of event itself?


Reply to this email directly or view it on GitHub
#10.

Studying for the Turing test

Do you mean the aggregate identifier?

Could be other things as well... depends on your implementation
On 23 Apr 2015 09:51, "Evgeniy Gryaznov" notifications@github.com wrote:

Do you mean the aggregate identifier?


Reply to this email directly or view it on GitHub
#10 (comment).

Guess it's clear at this point.
I wonder, though, if Version itself belongs to Event or should be moved to it's metadata.