Table of Contents

Class GetFailedMessagesRequest

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

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

tableName string

The qualified outbox table name.

maxRetries int

Maximum number of retries to consider.

olderThan DateTimeOffset?

Only return messages that failed before this timestamp.

batchSize int

Maximum number of messages to retrieve.

commandTimeout int

Command timeout in seconds.

cancellationToken CancellationToken

The cancellation token.