Class LoadSagaRequest<TSagaState>
Represents a data request to load a saga state from the SQL Server saga store.
public sealed class LoadSagaRequest<TSagaState> : DataRequestBase<IDbConnection, TSagaState?>, IDataRequest<IDbConnection, TSagaState?>, IDataRequest where TSagaState : SagaState
Type Parameters
TSagaStateThe type of the saga state.
- Inheritance
-
DataRequestBase<IDbConnection, TSagaState>LoadSagaRequest<TSagaState>
- Implements
-
IDataRequest<IDbConnection, TSagaState>
- 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
sagaIdGuidThe unique identifier of the saga to load.
serializerDispatchJsonSerializerThe JSON serializer for deserializing saga state.
qualifiedTableNamestringThe fully qualified saga table name.
scopeTenantScopeThe tenant scope for row-level tenant scoping. When tenant-scoped, the load is restricted to the current tenant's saga (
AND TenantId = @TenantId) so a tenant can never load another tenant's saga by id. An untenanted scope binds the reserved sentinel, so the predicate is applied either way. A tenant-scoped scope cannot be constructed without a tenant, so a predicate-less load while tenancy is active is unrepresentable.cancellationTokenCancellationTokenThe cancellation token.