From 7971f6313cdad50e4945d164c4568c093b3cc007 Mon Sep 17 00:00:00 2001 From: Paul Gradie Date: Tue, 1 Mar 2022 10:42:52 +1100 Subject: [PATCH] pass arguments correctly --- source/Nevermore/Transient/TransactionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Nevermore/Transient/TransactionExtensions.cs b/source/Nevermore/Transient/TransactionExtensions.cs index 6ec6d9ad..316f335e 100644 --- a/source/Nevermore/Transient/TransactionExtensions.cs +++ b/source/Nevermore/Transient/TransactionExtensions.cs @@ -14,7 +14,7 @@ public static DbTransaction BeginTransactionWithRetry(this SqlConnection connect public static DbTransaction BeginTransactionWithRetry(this SqlConnection connection, IsolationLevel isolationLevel, string sqlServerTransactionName, RetryPolicy retryPolicy) { - return (retryPolicy ?? RetryPolicy.NoRetry).LoggingRetries("Beginning Database Transaction").ExecuteAction(() => connection.BeginTransaction()); + return (retryPolicy ?? RetryPolicy.NoRetry).LoggingRetries("Beginning Database Transaction").ExecuteAction(() => connection.BeginTransaction(isolationLevel, sqlServerTransactionName)); } } } \ No newline at end of file