Class GetScheduledMessagesRequest
Data request to get scheduled 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 GetScheduledMessagesRequest : DataRequestBase<IDbConnection, IEnumerable<OutboxMessageRow>>, IDataRequest<IDbConnection, IEnumerable<OutboxMessageRow>>, IDataRequest
- Inheritance
-
GetScheduledMessagesRequest
- 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
GetScheduledMessagesRequest(string, DateTimeOffset, int, int, CancellationToken)
Initializes a new instance of the GetScheduledMessagesRequest class.
public GetScheduledMessagesRequest(string tableName, DateTimeOffset scheduledBefore, int batchSize, int commandTimeout, CancellationToken cancellationToken)
Parameters
tableNamestringThe qualified outbox table name.
scheduledBeforeDateTimeOffsetGet messages scheduled before this time.
batchSizeintMaximum number of messages to retrieve.
commandTimeoutintCommand timeout in seconds.
cancellationTokenCancellationTokenThe cancellation token.