Skip to content

Instantly share code, notes, and snippets.

@codescribler
Created October 18, 2014 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codescribler/4404be4a04966f14839c to your computer and use it in GitHub Desktop.
Save codescribler/4404be4a04966f14839c to your computer and use it in GitHub Desktop.
Structure of an Event message
public class CustomerCreated : Event
{
public readonly Guid AggreagteId;
public readonly int Version;
public readonly Guid UserId;
public readonly Guid ProcessId
// Other fields specific to this event
public CustomerCreated(Guid aggregateId, int version, Guid userId, Guid processId)
{
AggreagteId = aggregateId;
Version = version;
UserId = userId;
ProcessId = processId;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment