Class PostgresCdcConnectionBuilderExtensions
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
builderIPostgresCdcConnectionBuilderThe connection builder.
stateConnectionFactoryFunc<IServiceProvider, Func<NpgsqlConnection>>A factory function that creates state store Postgres connections.
Returns
- IPostgresCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentNullException
Thrown when
stateConnectionFactoryis null.