ControlCommandEnvelope extension

Extension helpers to convert a command into an Envelope.

on

Methods

toEnvelope({required String queue, Map<String, String>? headers}) Envelope

Available on ControlCommandMessage, provided by the ControlCommandEnvelope extension

Encodes the command as an Envelope for dispatch.