We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 131830b commit 79b5c5aCopy full SHA for 79b5c5a
src/NHibernate/Impl/SessionFactoryImpl.cs
@@ -1290,7 +1290,7 @@ private ICurrentSessionContext BuildCurrentSessionContext()
1290
}
1291
else
1292
{
1293
- context = (ICurrentSessionContext) Environment.ServiceProvider.GetInstance(
+ context = (ICurrentSessionContext) Environment.ServiceProvider.GetService(
1294
implClass ?? typeof(ICurrentSessionContext));
1295
1296
if (context is ISessionFactoryAwareCurrentSessionContext sessionFactoryAwareContext)
0 commit comments