Skip to content

Commit e26af46

Browse files
committed
Fixup for NHibernate logger changes
Add NoInlining
1 parent 78ce59e commit e26af46

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/NHibernate/Logging.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Configuration;
33
using System.Linq;
4+
using System.Runtime.CompilerServices;
45

56
namespace NHibernate
67
{
@@ -69,10 +70,18 @@ static LogWrapper()
6970
}
7071
}
7172

72-
public static INHibernateLoggerFactory LoggerFactory => _loggerFactory;
73+
public static INHibernateLoggerFactory LoggerFactory
74+
{
75+
[MethodImpl(MethodImplOptions.NoInlining)]
76+
get => _loggerFactory;
77+
}
7378

7479
#pragma warning disable 618
75-
internal static ILoggerFactory LegacyLoggerFactory => _legacyLoggerFactory;
80+
internal static ILoggerFactory LegacyLoggerFactory
81+
{
82+
[MethodImpl(MethodImplOptions.NoInlining)]
83+
get => _legacyLoggerFactory;
84+
}
7685
#pragma warning restore 618
7786
}
7887

0 commit comments

Comments
 (0)