public OutboxPersister(IConnectionManager connectionManager, string tablePrefix, SqlDialect sqlDialect, int cleanupBatchSize = 10000)
 {
     this.connectionManager = connectionManager;
     this.sqlDialect        = sqlDialect;
     this.cleanupBatchSize  = cleanupBatchSize;
     outboxCommands         = OutboxCommandBuilder.Build(sqlDialect, tablePrefix);
 }
 public OutboxPersister(Func <DbConnection> connectionBuilder, string tablePrefix, SqlDialect sqlDialect, int cleanupBatchSize = 10000)
 {
     this.connectionBuilder = connectionBuilder;
     this.sqlDialect        = sqlDialect;
     this.cleanupBatchSize  = cleanupBatchSize;
     outboxCommands         = OutboxCommandBuilder.Build(tablePrefix, sqlDialect);
 }
 public OutboxPersister(Func <DbConnection> connectionBuilder, string tablePrefix, string schema, SqlVariant sqlVariant, int cleanupBatchSize = 10000)
 {
     this.connectionBuilder = connectionBuilder;
     this.cleanupBatchSize  = cleanupBatchSize;
     outboxCommands         = OutboxCommandBuilder.Build(tablePrefix, schema, sqlVariant);
     commandBuilder         = new CommandBuilder(sqlVariant);
 }
Пример #4
0
 public OutboxPersister(IConnectionManager connectionManager, SqlDialect sqlDialect, OutboxCommands outboxCommands, Func <ISqlOutboxTransaction> outboxTransactionFactory, int cleanupBatchSize = 10000)
 {
     this.connectionManager        = connectionManager;
     this.sqlDialect               = sqlDialect;
     this.outboxCommands           = outboxCommands;
     this.outboxTransactionFactory = outboxTransactionFactory;
     this.cleanupBatchSize         = cleanupBatchSize;
 }
Пример #5
0
 public PessimisticConcurrencyControlStrategy(SqlDialect sqlDialect, OutboxCommands outboxCommands)
 {
     this.sqlDialect     = sqlDialect;
     this.outboxCommands = outboxCommands;
 }