cqrsMessageCommand()
Creates a CQRS message command.
Import
Section titled “Import”import { cqrsMessageCommand } from "@graphrefly/ts/cqrs/messaging";Signature
Section titled “Signature”function cqrsMessageCommand( message: MessageBusMessage<TPayload>, delivery: MessageBusDelivery, policy?: CqrsMessagingPolicy<TPayload, TCommand>,): CqrsCommand<TCommand> | undefinedParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | MessageBusMessage<TPayload> | message value used by the helper. |
delivery | MessageBusDelivery | delivery value used by the helper. |
policy | CqrsMessagingPolicy<TPayload, TCommand> | Policy object used to admit, retry, or route work. |
Returns
Section titled “Returns”The CQRS message command result.
Example
Section titled “Example”import { cqrsMessageCommand } from "@graphrefly/ts/cqrs/messaging";Source
Section titled “Source”packages/ts/src/cqrs/messaging.ts