If the WantsToCreateTheSession returned true then this method is invoked to allow the scope to create a properly configured session

Namespace: Castle.ActiveRecord.Framework.Scopes
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public virtual ISession OpenSession(
	ISessionFactory sessionFactory,
	IInterceptor interceptor
)

Parameters

sessionFactory
ISessionFactory
From where to open the session
interceptor
IInterceptor
the NHibernate interceptor

Return Value

the newly created session

See Also