Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.IsDeferredCloseActive Method

Return if deferred close is active for the current thread and the given SessionFactory.

[Visual Basic]
Public Shared Sub IsDeferredCloseActive( _
   ByVal sessionFactory As ISessionFactory _
)
[C#]
public static bool IsDeferredCloseActive(
   ISessionFactory sessionFactory
);

Parameters

sessionFactory
The session factory.

Return Value

true if [is deferred close active] [the specified session factory]; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException If SessionFactory argument is null.

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace