Class InsertOutboxMessage
Represents a data request to insert a new outbox message into the Postgres database.
public sealed class InsertOutboxMessage : DataRequest<int>, IDataRequest<IDbConnection, int>, IDataRequest
- Inheritance
-
InsertOutboxMessage
- Implements
- Inherited Members
Constructors
InsertOutboxMessage(string, string, string, byte[], DateTimeOffset, string?, string?, string?, string?, int, DateTimeOffset?, string?, string?, long, string?, bool, string, int, CancellationToken)
Initializes a new instance of the InsertOutboxMessage class.
public InsertOutboxMessage(string messageId, string messageType, string messageMetadata, byte[] messageBody, DateTimeOffset createdAt, string? tenantId, string? destination, string? correlationId, string? causationId, int priority, DateTimeOffset? scheduledAt, string? partitionKey, string? groupKey, long sequenceNumber, string? targetTransports, bool isMultiTransport, string outboxTableName, int sqlTimeOutSeconds, CancellationToken cancellationToken)
Parameters
messageIdstringThe unique identifier of the message.
messageTypestringThe type of the message.
messageMetadatastringThe metadata associated with the message.
messageBodybyte[]The serialized body content of the message as raw bytes (persisted to a
byteacolumn).createdAtDateTimeOffsetThe time the message was created; persisted to
occurred_onso the caller's created-at survives the stageāreload round-trip (rather than being overwritten with the database server clock).tenantIdstringThe tenant identifier the message was produced under, or null when no tenant scope applies.
destinationstringThe delivery destination the message is routed to, or null when none was carried.
correlationIdstringThe correlation identifier for distributed tracing, or null when none was carried.
causationIdstringThe causation identifier linking to the triggering message, or null when none was carried.
priorityintThe delivery priority (higher values indicate higher priority);
0when none was specified.scheduledAtDateTimeOffset?The time before which the message must not be delivered, or null when it is deliverable immediately.
partitionKeystringThe partition key preserving ordered delivery within a partition, or null when none was carried.
groupKeystringThe logical grouping key, or null when none was carried.
sequenceNumberlongThe strictly-increasing per-partition sequence number enforcing ascending in-partition delivery order;
0when none was carried.targetTransportsstringThe comma-separated set of target transports, or null when none was carried.
isMultiTransportbooltrue when the message targets multiple transports; otherwise false.
outboxTableNamestringThe name of the outbox table.
sqlTimeOutSecondsintThe SQL command timeout in seconds.
cancellationTokenCancellationTokenThe cancellation token.
Remarks
This framework request binds its fixed primitive input and output schema without runtime emit. Replacing a known parameter value is observed at execution; custom parameter metadata, templates and output callbacks are not an extension contract. Custom IDataRequest implementations are unchanged.