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
Afficher le fichier Open project: shosca/ActiveRecord

Méthodes publiques

Méthode Description
StatelessSessionScope ( ) : System.Collections.Generic

Initializes a new instance of the StatelessSessionScope class.

Méthodes protégées

Méthode 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 méthode

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
Résultat ISession

SetFlushMode() protected méthode

protected SetFlushMode ( ISession session ) : void
session ISession
Résultat void

StatelessSessionScope() public méthode

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