Interface IInMemoryCdcStore
Defines the contract for an in-memory CDC change store.
public interface IInMemoryCdcStore
- Extension Methods
Remarks
This interface provides methods to add, retrieve, and manage CDC changes in memory for testing scenarios.
Methods
AddChange(InMemoryCdcChange)
Adds a simulated CDC change to the store.
void AddChange(InMemoryCdcChange change)
Parameters
changeInMemoryCdcChangeThe change to add.
Clear()
Clears all changes from the store.
void Clear()
GetPendingChanges(int)
Gets all pending changes that have not been processed.
IReadOnlyList<InMemoryCdcChange> GetPendingChanges(int maxCount)
Parameters
maxCountintThe maximum number of changes to retrieve.
Returns
- IReadOnlyList<InMemoryCdcChange>
A collection of pending changes.
GetPendingCount()
Gets the total count of pending changes.
int GetPendingCount()
Returns
- int
The number of pending changes.
MarkAsProcessed(IEnumerable<InMemoryCdcChange>)
Marks the specified changes as processed.
void MarkAsProcessed(IEnumerable<InMemoryCdcChange> changes)
Parameters
changesIEnumerable<InMemoryCdcChange>The changes to mark as processed.