Class GetFailedMessagesRequest
Data request to get failed messages from the outbox.
[NoTenantTerm(TenantConfinement.EstateWide, "the outbox drain is cross-tenant by design: one dispatcher serves every tenant, and the row carries TenantId so the handler can re-establish the owning tenant per message. Scoping this read to the ambient tenant would stall delivery for every other tenant")]
public sealed class GetFailedMessagesRequest : DataRequestBase<IDbConnection, IEnumerable<OutboxMessageRow>>, IDataRequest<IDbConnection, IEnumerable<OutboxMessageRow>>, IDataRequest
- Inheritance
-
GetFailedMessagesRequest
- Implements
- Inherited Members
Remarks
This framework-owned request uses its fixed constructor-defined primitive input schema. Replacing a
known parameter value through Parameters is observed at execution; parameter DbType,
direction, size, templates and output callbacks are not an extensibility contract of this request.
Custom IDataRequest implementations retain their own execution behavior.
Constructors
GetFailedMessagesRequest(string, int, DateTimeOffset?, int, int, CancellationToken)
Initializes a new instance of the GetFailedMessagesRequest class.
public GetFailedMessagesRequest(string tableName, int maxRetries, DateTimeOffset? olderThan, int batchSize, int commandTimeout, CancellationToken cancellationToken)
Parameters
tableNamestringThe qualified outbox table name.
maxRetriesintMaximum number of retries to consider.
olderThanDateTimeOffset?Only return messages that failed before this timestamp.
batchSizeintMaximum number of messages to retrieve.
commandTimeoutintCommand timeout in seconds.
cancellationTokenCancellationTokenThe cancellation token.