Class IntegrationEnvelope
The consume-side envelope handed to IInboxDispatcher: a stable MessageId plus the deserialized IIntegrationEvent. Only MessageId and Event are load-bearing; the remaining members are optional lineage / observability metadata and never participate in deduplication.
public sealed record IntegrationEnvelope : IEquatable<IntegrationEnvelope>
- Inheritance
-
IntegrationEnvelope
- Implements
- Inherited Members
- Extension Methods
Constructors
IntegrationEnvelope(Guid, IIntegrationEvent)
The consume-side envelope handed to IInboxDispatcher: a stable MessageId plus the deserialized IIntegrationEvent. Only MessageId and Event are load-bearing; the remaining members are optional lineage / observability metadata and never participate in deduplication.
public IntegrationEnvelope(Guid MessageId, IIntegrationEvent Event)
Parameters
MessageIdGuidThe stable, unique id used for deduplication — the producer's outbox message id (a UUIDv7) carried verbatim by the transport. Redeliveries of the same message carry the same value.
EventIIntegrationEventThe deserialized integration event to dispatch to its handlers.
Properties
CausationId
Optional lineage: the id of the message that directly caused this one (the source outbox id).
public Guid? CausationId { get; init; }
Property Value
- Guid?
CorrelationId
Optional lineage: the workflow / conversation id shared across a business transaction.
public string? CorrelationId { get; init; }
Property Value
Event
The deserialized integration event to dispatch to its handlers.
public IIntegrationEvent Event { get; init; }
Property Value
MessageId
The stable, unique id used for deduplication — the producer's outbox message id (a UUIDv7) carried verbatim by the transport. Redeliveries of the same message carry the same value.
public Guid MessageId { get; init; }
Property Value
MessageSource
Optional producer namespace (the originating service / bounded context), for observability.
public string? MessageSource { get; init; }
Property Value
TraceParent
Optional W3C traceparent carried from the producing transaction.
public string? TraceParent { get; init; }
Property Value
TraceState
Optional W3C tracestate carried from the producing transaction.
public string? TraceState { get; init; }