Table of Contents

Class CdcProcessingState

Namespace
Excalibur.Cdc.SqlServer
Assembly
Excalibur.Cdc.SqlServer.dll

Represents the state of CDC (Change Data Capture) processing, including the last processed log sequence number (LSN), sequence value, and other metadata.

public sealed class CdcProcessingState
Inheritance
CdcProcessingState
Inherited Members

Properties

DatabaseConnectionIdentifier

Gets the identifier for the database connection used in the CDC process.

public string DatabaseConnectionIdentifier { get; init; }

Property Value

string

The identifier for the database connection used in the CDC process.

Remarks

This value uniquely identifies the database connection, which can be useful for scenarios where multiple connections are used in the CDC process.

DatabaseName

Gets the name of the database being processed.

public string DatabaseName { get; init; }

Property Value

string

The name of the database being processed.

Remarks

This property identifies the database for which CDC is being tracked.

LastCommitTime

Gets the timestamp of the last commit operation that was processed.

public DateTime LastCommitTime { get; init; }

Property Value

DateTime

The timestamp of the last commit operation that was processed.

Remarks

This value indicates the latest commit time for the data captured by the CDC process.

LastProcessedLsn

Gets the last processed Log Sequence Number (LSN) in the CDC process.

public byte[] LastProcessedLsn { get; init; }

Property Value

byte[]

The last processed Log Sequence Number (LSN) in the CDC process.

Remarks

The LSN is a unique identifier for a change operation in the database. This is used to track the progress of CDC processing.

LastProcessedSequenceValue

Gets the last processed sequence value in the CDC process.

public byte[]? LastProcessedSequenceValue { get; init; }

Property Value

byte[]

The last processed sequence value in the CDC process.

Remarks

This value may be used to track sequence changes within a batch or transaction, if applicable.

ProcessedAt

Gets the timestamp when the CDC processing state was updated.

public DateTimeOffset ProcessedAt { get; init; }

Property Value

DateTimeOffset

The timestamp when the CDC processing state was updated.

Remarks

This value reflects the time at which the CDC processing state was last persisted or recorded.

TableName

Gets the name of the table being processed.

public string TableName { get; init; }

Property Value

string

The name of the table being processed.

Remarks

This property identifies the table for which CDC is being tracked.