Interface IDataChangeEventProcessorFactory
Factory interface for creating instances of IDataChangeEventProcessor with specified configuration and database connections.
public interface IDataChangeEventProcessorFactory
Methods
Create(IDatabaseOptions, CdcRepository, Func<IDbConnection>)
Creates a new instance of IDataChangeEventProcessor using the specified database configuration and connections.
IDataChangeEventProcessor Create(IDatabaseOptions dbConfig, CdcRepository cdcRepository, Func<IDbConnection> stateStoreConnectionFactory)
Parameters
dbConfigIDatabaseOptionsThe database configuration containing details for the CDC process.
cdcRepositoryCdcRepositoryThe CDC repository for querying change data.
stateStoreConnectionFactoryFunc<IDbConnection>Supplies a connection per CDC-state operation.
Returns
- IDataChangeEventProcessor
An instance of IDataChangeEventProcessor configured with the provided inputs.
Exceptions
- ArgumentNullException
Thrown if any of the parameters are
null.