Table of Contents

Class LoadSagaRequest<TSagaState>

Namespace
Excalibur.Saga.Oracle.Requests
Assembly
Excalibur.Saga.Oracle.dll

Represents a data request to load a saga state from the Oracle saga store.

public sealed class LoadSagaRequest<TSagaState> : DataRequestBase<IDbConnection, TSagaState?>, IDataRequest<IDbConnection, TSagaState?>, IDataRequest where TSagaState : SagaState

Type Parameters

TSagaState

The type of the saga state.

Inheritance
LoadSagaRequest<TSagaState>
Implements
Inherited Members

Constructors

LoadSagaRequest(Guid, DispatchJsonSerializer, string, TenantScope, CancellationToken)

Initializes a new instance of the LoadSagaRequest<TSagaState> class.

public LoadSagaRequest(Guid sagaId, DispatchJsonSerializer serializer, string qualifiedTableName, TenantScope scope, CancellationToken cancellationToken)

Parameters

sagaId Guid

The unique identifier of the saga to load.

serializer DispatchJsonSerializer

The JSON serializer for deserializing saga state.

qualifiedTableName string

The fully qualified saga table name.

scope TenantScope

The tenant scope. The tenant predicate and its parameter are emitted unconditionally — an untenanted scope binds the reserved sentinel — so the load is restricted to the current partition's saga (AND TenantId = :TenantId) so a tenant can never load another tenant's saga by id. A tenant-scoped read cannot be constructed without a tenant, so a predicate-less all-tenants load while tenancy is active is unrepresentable.

cancellationToken CancellationToken

The cancellation token.