Core Concepts — Contracts, Envelopes & EventBus
- Contracts:
IEvent,IDomainEvent,IIntegrationEvent,IEventHandler<in TEvent>,IEnvelopeEventHandler<in TEvent>,IEventBus,IEventPublisher, andIEventSubscriber. Note thatITransactionalEventPublisherwas removed inv2.0.0(ADR-037). - Identifiers (
EricksonLopez.Events.Identifiers):EventId(GUID v7 on .NET 9+, UUID v4 fallback on .NET 8),EventType(case-insensitive),EventVersion(defaults to1, exposes.IsUninitialized),CorrelationId,CausationId, andTenantId(case-insensitive). - Envelopes & Context:
EventEnvelope,EventEnvelope<TEvent>,IEventEnvelope<out TEvent>,EventMetadata/EventMetadataBuilder,EventContext, andIEventExecutionTracker.
Execution Strategies & Reentrancy Protection
Section titled “Execution Strategies & Reentrancy Protection”EventBus supports SequentialExecutionStrategy and ParallelExecutionStrategy with configurable ErrorPolicy (FailFast vs AggregateAndContinue), HandlerScopePolicy (Auto, CreatePerHandler, ReuseAmbientScope), and CausationDepthLimitMiddleware (MaxReentrancyDepth default 10).