Table of Contents

Class GetTenantScopedTransportDeliveriesRequest

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

Data request to get transport deliveries for a message, confined to a caller-supplied tenant partition.

public sealed class GetTenantScopedTransportDeliveriesRequest : DataRequestBase<IDbConnection, IEnumerable<OutboundMessageTransport>>, IDataRequest<IDbConnection, IEnumerable<OutboundMessageTransport>>, IDataRequest
Inheritance
GetTenantScopedTransportDeliveriesRequest
Implements
Inherited Members

Remarks

The consumer-facing counterpart to GetTransportDeliveriesRequest, which stays deliberately unscoped for the cross-tenant delivery drain. This request instead binds the tenant term the caller asserts as an explicit constructor argument -- never read from ambient context, because this store reads no ambient tenant. A caller scoped to one tenant that supplies another tenant's MessageId matches zero rows here rather than receiving that message's delivery records.

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

GetTenantScopedTransportDeliveriesRequest(string, string, KeyedTenantPartition, int, CancellationToken)

Initializes a new instance of the GetTenantScopedTransportDeliveriesRequest class.

public GetTenantScopedTransportDeliveriesRequest(string tableName, string messageId, KeyedTenantPartition tenant, int commandTimeout, CancellationToken cancellationToken)

Parameters

tableName string

The qualified transports table name.

messageId string

The message ID to get deliveries for.

tenant KeyedTenantPartition

The partition whose rows the caller may see. Supplied by the caller rather than read from ambient context: this store deliberately reads no ambient tenant.

commandTimeout int

Command timeout in seconds.

cancellationToken CancellationToken

The cancellation token.