Skip to content

Commit d88025f

Browse files
fixup! Clean up a bit isolation work code
1 parent 8347d37 commit d88025f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/NHibernate/Async/Transaction/AdoNetTransactionFactory.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
using NHibernate.Engine;
1717
using NHibernate.Engine.Transaction;
1818
using NHibernate.Exceptions;
19-
using NHibernate.Impl;
2019

2120
namespace NHibernate.Transaction
2221
{
@@ -74,7 +73,7 @@ async Task InternalExecuteWorkInIsolationAsync()
7473
}
7574
catch (Exception ignore)
7675
{
77-
isolaterLog.Debug(ignore, "Unable to rollback transaction");
76+
_isolatorLog.Debug(ignore, "Unable to rollback transaction");
7877
}
7978

8079
switch (t)
@@ -97,7 +96,7 @@ async Task InternalExecuteWorkInIsolationAsync()
9796
}
9897
catch (Exception ignore)
9998
{
100-
isolaterLog.Warn(ignore, "Unable to dispose transaction");
99+
_isolatorLog.Warn(ignore, "Unable to dispose transaction");
101100
}
102101

103102
if (session.Factory.Dialect is SQLiteDialect == false)

src/NHibernate/Transaction/AdoNetTransactionFactory.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using NHibernate.Engine;
77
using NHibernate.Engine.Transaction;
88
using NHibernate.Exceptions;
9-
using NHibernate.Impl;
109

1110
namespace NHibernate.Transaction
1211
{
@@ -16,7 +15,7 @@ namespace NHibernate.Transaction
1615
/// </summary>
1716
public partial class AdoNetTransactionFactory : ITransactionFactory
1817
{
19-
private readonly INHibernateLogger isolaterLog = NHibernateLogger.For(typeof(ITransactionFactory));
18+
private readonly INHibernateLogger _isolatorLog = NHibernateLogger.For(typeof(ITransactionFactory));
2019

2120
/// <inheritdoc />
2221
public virtual ITransaction CreateTransaction(ISessionImplementor session)
@@ -84,7 +83,7 @@ public virtual void ExecuteWorkInIsolation(ISessionImplementor session, IIsolate
8483
}
8584
catch (Exception ignore)
8685
{
87-
isolaterLog.Debug(ignore, "Unable to rollback transaction");
86+
_isolatorLog.Debug(ignore, "Unable to rollback transaction");
8887
}
8988

9089
switch (t)
@@ -107,7 +106,7 @@ public virtual void ExecuteWorkInIsolation(ISessionImplementor session, IIsolate
107106
}
108107
catch (Exception ignore)
109108
{
110-
isolaterLog.Warn(ignore, "Unable to dispose transaction");
109+
_isolatorLog.Warn(ignore, "Unable to dispose transaction");
111110
}
112111

113112
if (session.Factory.Dialect is SQLiteDialect == false)

0 commit comments

Comments
 (0)