Table of Contents

Interface IEvent

Namespace
Opossum
Assembly
Opossum.dll

Marker interface for domain event payloads.

public interface IEvent
Extension Methods

Remarks

Implement this interface on every domain event class in your application. The concrete type is preserved during serialization so the original CLR type is restored when the event is read back from the store.

Example:

public record StudentRegisteredEvent(Guid StudentId, string Name) : IEvent;