Table of Contents

Class CleanupSentMessagesRequest

Namespace
Excalibur.Outbox.SqlServer.Requests
Assembly
Excalibur.Outbox.SqlServer.dll

Data request to delete sent messages older than a specified date. This is the second step in the cleanup process, after transport deliveries are deleted.

[NoTenantTerm(TenantConfinement.EstateWide, "retention purge: deletes already-sent messages by age and batch size on behalf of the operator rather than a tenant, so it is estate-wide by intent; its reach is bounded by the age and batch arguments it is given, never by ambient tenant state")]
public sealed class CleanupSentMessagesRequest : DataRequestBase<IDbConnection, int>, IDataRequest<IDbConnection, int>, IDataRequest
Inheritance
CleanupSentMessagesRequest
Implements
Inherited Members

Constructors

CleanupSentMessagesRequest(string, DateTimeOffset, int, IDbTransaction?, int, CancellationToken)

Initializes a new instance of the CleanupSentMessagesRequest class.

public CleanupSentMessagesRequest(string tableName, DateTimeOffset olderThan, int batchSize, IDbTransaction? transaction, int commandTimeout, CancellationToken cancellationToken)

Parameters

tableName string

The qualified outbox table name.

olderThan DateTimeOffset

Delete messages sent before this time.

batchSize int

Maximum number of messages to delete.

transaction IDbTransaction

Optional transaction to participate in.

commandTimeout int

Command timeout in seconds.

cancellationToken CancellationToken

The 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.