Table of Contents

Class PostgresCdcConnectionBuilderExtensions

Namespace
Excalibur.Cdc.Postgres
Assembly
Excalibur.Cdc.Postgres.dll

Extension methods for IPostgresCdcConnectionBuilder.

public static class PostgresCdcConnectionBuilderExtensions
Inheritance
PostgresCdcConnectionBuilderExtensions
Inherited Members

Methods

StateConnectionFactory(IPostgresCdcConnectionBuilder, Func<IServiceProvider, Func<NpgsqlConnection>>)

Sets a factory function that creates Postgres connections for the CDC state store.

public static IPostgresCdcBuilder StateConnectionFactory(this IPostgresCdcConnectionBuilder builder, Func<IServiceProvider, Func<NpgsqlConnection>> stateConnectionFactory)

Parameters

builder IPostgresCdcConnectionBuilder

The connection builder.

stateConnectionFactory Func<IServiceProvider, Func<NpgsqlConnection>>

A factory function that creates state store Postgres connections.

Returns

IPostgresCdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentNullException

Thrown when stateConnectionFactory is null.