EventMessage
Inheritors
Properties
The aggregate ID used to uniquely identify an aggregate instance.
The name of the aggregate.
The name of the bounded context this entity belongs to.
The timestamp when this message was created, as a Unix timestamp in milliseconds.
A computed property that indicates whether the entity has been initialized. Returns true if the version is greater than UNINITIALIZED_VERSION. This property is ignored during JSON serialization.
A computed property that indicates whether the entity is at its initial version. Returns true if the version equals INITIAL_VERSION. This property is ignored during JSON serialization.
Indicates whether this message is in read-only mode.
Functions
Checks if two aggregates belong to the same context and have the same aggregate name.
Checks if this entity belongs to the same bounded context as another entity.
Adds all key-value pairs from the provided map to the message header and returns the message for method chaining.
Adds a key-value pair to the message header and returns the message for method chaining.
Marks this message as read-only and returns it for method chaining.