Interface IOracleSagaBuilder
Fluent builder interface for configuring Oracle saga store settings.
public interface IOracleSagaBuilder
Remarks
Provides the canonical 4 connection overloads plus subsystem-specific configuration for saga schema and table names. Connection overloads are mutually exclusive (last-wins): if multiple connection methods are called, the last one takes effect.
The configured connection is shared by the saga store and the timeout store.
Methods
BindConfiguration(string)
Binds options from an IConfiguration section.
IOracleSagaBuilder BindConfiguration(string sectionPath)
Parameters
sectionPathstringThe configuration section path (e.g., "Saga:Oracle").
Returns
- IOracleSagaBuilder
The builder for fluent chaining.
ConnectionFactory(Func<IServiceProvider, Func<OracleConnection>>)
Sets a factory function that creates Oracle connections.
IOracleSagaBuilder ConnectionFactory(Func<IServiceProvider, Func<OracleConnection>> connectionFactory)
Parameters
connectionFactoryFunc<IServiceProvider, Func<OracleConnection>>A factory receiving IServiceProvider and returning a
Func<OracleConnection>that creates connections on demand.
Returns
- IOracleSagaBuilder
The builder for fluent chaining.
ConnectionString(string)
Sets the Oracle connection string.
IOracleSagaBuilder ConnectionString(string connectionString)
Parameters
connectionStringstringThe Oracle connection string.
Returns
- IOracleSagaBuilder
The builder for fluent chaining.
ConnectionStringName(string)
Resolves the connection string from IConfiguration.GetConnectionString(name)
at service resolution time.
IOracleSagaBuilder ConnectionStringName(string name)
Parameters
namestringThe connection string name in the
ConnectionStringssection.
Returns
- IOracleSagaBuilder
The builder for fluent chaining.
SchemaName(string)
Sets the schema name for the saga table. Default: "DISPATCH".
IOracleSagaBuilder SchemaName(string schema)
Parameters
schemastringThe schema name.
Returns
- IOracleSagaBuilder
The builder for fluent chaining.
TableName(string)
Sets the saga table name. Default: "SAGAS".
IOracleSagaBuilder TableName(string tableName)
Parameters
tableNamestringThe table name.
Returns
- IOracleSagaBuilder
The builder for fluent chaining.