Class InMemoryCdcOptions
Configuration options for the in-memory CDC provider.
public sealed class InMemoryCdcOptions
- Inheritance
-
InMemoryCdcOptions
- Inherited Members
Remarks
The in-memory CDC provider is designed for testing scenarios where a real database connection is not available or not desired.
Properties
AutoFlush
Gets or sets whether to automatically flush changes after each batch.
public bool AutoFlush { get; set; }
Property Value
BatchSize
Gets or sets the batch size for CDC change processing.
[Range(1, 2147483647)]
public int BatchSize { get; set; }
Property Value
- int
The batch size. Default is 100.
PreserveHistory
Gets or sets whether to preserve changes in history after processing.
public bool PreserveHistory { get; set; }
Property Value
ProcessorId
Gets or sets the processor identifier for this CDC processor instance.
[Required]
public string ProcessorId { get; set; }
Property Value
- string
The processor identifier. Default is "inmemory-cdc".
Methods
Validate()
Validates the options and throws if invalid.
public void Validate()
Exceptions
- InvalidOperationException
Thrown when validation fails.