private OneWorldDbTransaction( Guid transactionId, int transactionNumber, IDbConnection dbConnection, IsolationLevel isolationLevel, OneWorldDbClientManager <TDbContext> oneWorldDbClientManager, Func <IDbConnection, IDbTransaction, TDbContext> dbContextFactory, ILogger <OneWorldDbTransaction <TDbContext> > logger) { TransactionId = transactionId; TransactionNumber = transactionNumber; _dbConnection = dbConnection; IsolationLevel = isolationLevel; _oneWorldDbClientManager = oneWorldDbClientManager; _dbContextFactory = dbContextFactory; _logger = logger; }
CreateOneWorldDbTransaction( Guid transactionId, int transactionNumber, IDbConnection dbConnection, IsolationLevel isolationLevel, OneWorldDbClientManager <TDbContext> oneWorldDbClientManager, Func <IDbConnection, IDbTransaction, TDbContext> dbContextFactory, ILogger <OneWorldDbTransaction <TDbContext> > logger) { return(new OneWorldDbTransaction <TDbContext>( transactionId, transactionNumber, dbConnection, isolationLevel, oneWorldDbClientManager, dbContextFactory, logger)); }