Table of Contents

Class CdcBuilderDiscoveryExtensions

Namespace
Excalibur.Cdc
Assembly
Excalibur.Cdc.dll

Extension methods that bridge ICdcBuilder to ICdcBuilderDiscovery for table discovery features.

public static class CdcBuilderDiscoveryExtensions
Inheritance
CdcBuilderDiscoveryExtensions
Inherited Members

Remarks

These extensions allow consumers to call discovery methods directly on ICdcBuilder via the fluent API, while the actual contract is defined on the separate ICdcBuilderDiscovery interface following the Interface Segregation Principle.

Methods

BindTrackedTables(ICdcBuilder, string)

Binds tracked tables from an IConfiguration section.

public static ICdcBuilder BindTrackedTables(this ICdcBuilder builder, string configSectionPath)

Parameters

builder ICdcBuilder

The CDC builder.

configSectionPath string

The configuration section path containing an array of table tracking entries (e.g., "Cdc:Tables").

Returns

ICdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentException

Thrown when configSectionPath is null or whitespace.

InvalidOperationException

Thrown when the builder does not support ICdcBuilderDiscovery.

TrackTablesFromHandlers(ICdcBuilder)

Enables automatic discovery of tracked tables from registered ICdcTableProvider implementations in DI.

public static ICdcBuilder TrackTablesFromHandlers(this ICdcBuilder builder)

Parameters

builder ICdcBuilder

The CDC builder.

Returns

ICdcBuilder

The builder for fluent chaining.

Exceptions

InvalidOperationException

Thrown when the builder does not support ICdcBuilderDiscovery.