Interface ICdcStateStoreBuilder
Configures CDC state store persistence settings shared by all providers (table name, configuration binding).
public interface ICdcStateStoreBuilder
Remarks
This builder is used with WithStateStore on provider-specific CDC builders
to configure the state store independently from the CDC source connection.
For relational providers (SQL Server, Postgres) that also need schema and connection string configuration, see ICdcRelationalStateStoreBuilder.
Methods
BindConfiguration(string)
Binds state store options from an IConfiguration section.
ICdcStateStoreBuilder BindConfiguration(string sectionPath)
Parameters
sectionPathstringThe configuration section path (e.g., "Cdc:State").
Returns
- ICdcStateStoreBuilder
The builder for fluent chaining.
Remarks
Uses OptionsBuilder<T>.BindConfiguration() with
ValidateDataAnnotations and ValidateOnStart.
When the bound section contains a ConnectionString property,
it acts as an implicit WithStateStore call.
Exceptions
- ArgumentException
Thrown when
sectionPathis null or whitespace.
TableName(string)
Sets the table name for CDC checkpoint persistence.
ICdcStateStoreBuilder TableName(string tableName)
Parameters
tableNamestringThe table name.
Returns
- ICdcStateStoreBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
tableNameis null or whitespace.