C# Class Castle.ActiveRecord.Scopes.StatelessSessionScope

Implementation of ISessionScope with an IStatelessSession to improve performance by caching a session without a first-level-cache.
Inheritance: SessionScope
Show file Open project: shosca/ActiveRecord

Public Methods

Method Description
StatelessSessionScope ( ) : System.Collections.Generic

Initializes a new instance of the StatelessSessionScope class.

Protected Methods

Method Description
CreateSession ( ISessionFactory sessionFactory, IInterceptor interceptor ) : ISession

This method is invoked to allow the scope to create a properly configured session

SetFlushMode ( ISession session ) : void

Method Details

CreateSession() protected method

This method is invoked to allow the scope to create a properly configured session
protected CreateSession ( ISessionFactory sessionFactory, IInterceptor interceptor ) : ISession
sessionFactory ISessionFactory From where to open the session
interceptor IInterceptor the NHibernate interceptor
return ISession

SetFlushMode() protected method

protected SetFlushMode ( ISession session ) : void
session ISession
return void

StatelessSessionScope() public method

Initializes a new instance of the StatelessSessionScope class.
public StatelessSessionScope ( ) : System.Collections.Generic
return System.Collections.Generic