Namespace Stratara.Shared.Mediator.Mapping
Classes
- CommandEnvelopeMapper
Conversion helper that wraps an in-process ICommand instance and the originating SessionContext into a wire-level CommandEnvelope suitable for the outbox / message bus. Command payload is encrypted through ISecureJsonSerializer so any
[EncryptData]-decorated fields are end-to-end protected; the session-context envelope remains plaintext because the receiving worker needs to read the routing-relevant tenant id before it has the AAD available to decrypt anything else.