Class CleanupSentMessagesRequest
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
tableNamestringThe qualified outbox table name.
olderThanDateTimeOffsetDelete messages sent before this time.
batchSizeintMaximum number of messages to delete.
transactionIDbTransactionOptional transaction to participate in.
commandTimeoutintCommand 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.