private async Task <IAsyncTransaction> BeginTransactionWithoutLoggingAsync(AccessMode mode,
                                                                                   TransactionConfig txConfig)
        {
            await EnsureCanRunMoreStatementsAsync().ConfigureAwait(false);

            _connection = await _connectionProvider.AcquireAsync(mode).ConfigureAwait(false);

            var tx = new AsyncTransaction(_connection, this, _logger, _bookmark, _reactive);
            await tx.BeginTransactionAsync(txConfig ?? TransactionConfig.Empty).ConfigureAwait(false);

            _transaction = tx;
            return(_transaction);
        }
        private async Task <IInternalAsyncTransaction> BeginTransactionWithoutLoggingAsync(AccessMode mode,
                                                                                           Action <TransactionConfigBuilder> action, bool disposeUnconsumedSessionResult)
        {
            var options = BuildTransactionConfig(action);

            await EnsureCanRunMoreQuerysAsync(disposeUnconsumedSessionResult).ConfigureAwait(false);

            _connection = await _connectionProvider.AcquireAsync(mode, _database, _bookmark).ConfigureAwait(false);

            var tx = new AsyncTransaction(_connection, this, _logger, _database, _bookmark, _reactive, _fetchSize);
            await tx.BeginTransactionAsync(options).ConfigureAwait(false);

            _transaction = tx;
            return(_transaction);
        }
        private async Task <IInternalAsyncTransaction> BeginTransactionWithoutLoggingAsync(AccessMode mode,
                                                                                           Action <TransactionConfigBuilder> action, bool disposeUnconsumedSessionResult)
        {
            var config = BuildTransactionConfig(action);

            await EnsureCanRunMoreQuerysAsync(disposeUnconsumedSessionResult).ConfigureAwait(false);

            await AcquireConnectionAndDBName(mode);

            var tx = new AsyncTransaction(_connection, this, _logger, _database, _bookmark, _reactive, _fetchSize, ImpersonatedUser());
            await tx.BeginTransactionAsync(config).ConfigureAwait(false);

            _transaction = tx;
            return(_transaction);
        }
 public TransactionConnection(AsyncTransaction transaction, IConnection connection)
     : base(connection)
 {
     _transaction = transaction;
 }