Class DeleteOutboxMessage
Represents a data request to delete an outbox message from the Postgres database.
[NoTenantTerm(TenantConfinement.IdentityAddressed, "the post-claim mutation path: the drain has already claimed this row cross-tenant and removes it by its globally-unique message id. This store holds no tenant context to filter by - an outbox store reads no ambient tenant context and accepts a tenant only as an explicit argument - so the statement carries no tenant term, and a caller that supplies a message id it did not obtain from a claim reaches the row behind it. Isolation on this table is established where the row is written, by stamping tenant_id")]
public sealed class DeleteOutboxMessage : DataRequest<int>, IDataRequest<IDbConnection, int>, IDataRequest
- Inheritance
-
DeleteOutboxMessage
- Implements
- Inherited Members
Constructors
DeleteOutboxMessage(string, string, int, CancellationToken)
Initializes a new instance of the DeleteOutboxMessage class.
public DeleteOutboxMessage(string messageId, string outboxTableName, int sqlTimeOutSeconds, CancellationToken cancellationToken)
Parameters
messageIdstringThe unique identifier of the message to delete.
outboxTableNamestringThe name of the outbox table.
sqlTimeOutSecondsintThe SQL command timeout in seconds.
cancellationTokenCancellationTokenThe cancellation token.
Remarks
The delete targets the globally-unique outbox message_id, which addresses exactly one row, so no
tenant predicate is applied: the drain is cross-tenant infrastructure and must always be able to remove
the row it claimed, regardless of any ambient tenant context.
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.