Table of Contents

Class SaveSnapshotRequest

Namespace
Excalibur.EventSourcing.Oracle.Requests
Assembly
Excalibur.EventSourcing.Oracle.dll

Data request to save (upsert) a snapshot for an aggregate. Uses Oracle MERGE for atomic insert-or-update semantics, keyed on the aggregate identity, and only advances to a newer version.

public sealed class SaveSnapshotRequest : DataRequestBase<IDbConnection, int>, IDataRequest<IDbConnection, int>, IDataRequest
Inheritance
SaveSnapshotRequest
Implements
Inherited Members

Constructors

SaveSnapshotRequest(ISnapshot, TenantScope, CancellationToken, string, string)

Initializes a new instance of the SaveSnapshotRequest class.

public SaveSnapshotRequest(ISnapshot snapshot, TenantScope scope, CancellationToken cancellationToken, string schema = "EXCALIBUR", string table = "EVENTSTORESNAPSHOTS")

Parameters

snapshot ISnapshot

The snapshot to save.

scope TenantScope

The tenant scope. The tenant predicate is emitted unconditionally: an untenanted scope binds the reserved sentinel rather than omitting the term, so the statement is always restricted to a single partition's rows.

cancellationToken CancellationToken

The cancellation token.

schema string

The schema name for the snapshot store table.

table string

The snapshot store table name.