m-r icon indicating copy to clipboard operation
m-r copied to clipboard

EventDescriptor purpose

Open eagrzn opened this issue 9 years ago • 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?

eagrzn avatar Apr 22 '15 08:04 eagrzn

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 <[email protected]

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 https://github.com/gregoryyoung/m-r/issues/10.

Studying for the Turing test

gregoryyoung avatar Apr 22 '15 17:04 gregoryyoung

Do you mean the aggregate identifier?

eagrzn avatar Apr 23 '15 06:04 eagrzn

Could be other things as well... depends on your implementation On 23 Apr 2015 09:51, "Evgeniy Gryaznov" [email protected] wrote:

Do you mean the aggregate identifier?

— Reply to this email directly or view it on GitHub https://github.com/gregoryyoung/m-r/issues/10#issuecomment-95464457.

gregoryyoung avatar Apr 23 '15 08:04 gregoryyoung

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

norvegec avatar Dec 11 '22 11:12 norvegec