C# Class Castle.ActiveRecord.SessionScope

Implementation of ISessionScope to augment performance by caching the session, thus avoiding too much opens/flushes/closes.
Inheritance: Castle.ActiveRecord.Framework.Scopes.AbstractScope
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( bool discardChanges ) : void

Disposes the specified discard changes.

FailSession ( ISession session ) : void

This is called when an action on a session fails

SessionScope ( ) : System.Collections.Generic

Initializes a new instance of the SessionScope class.

SessionScope ( FlushAction flushAction ) : System.Collections.Generic

Initializes a new instance of the SessionScope class.

Méthodes protégées

Méthode Description
PerformDisposal ( ICollection sessions ) : void

Performs the disposal.

SessionScope ( FlushAction flushAction, SessionScopeType type ) : System.Collections.Generic

Initializes a new instance of the SessionScope class.

Method Details

Dispose() public méthode

Disposes the specified discard changes.
public Dispose ( bool discardChanges ) : void
discardChanges bool if set to true [discard changes].
Résultat void

FailSession() public méthode

This is called when an action on a session fails
public FailSession ( ISession session ) : void
session ISession The session
Résultat void

PerformDisposal() protected méthode

Performs the disposal.
protected PerformDisposal ( ICollection sessions ) : void
sessions ICollection The sessions.
Résultat void

SessionScope() public méthode

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

SessionScope() public méthode

Initializes a new instance of the SessionScope class.
public SessionScope ( FlushAction flushAction ) : System.Collections.Generic
flushAction FlushAction The flush action.
Résultat System.Collections.Generic

SessionScope() protected méthode

Initializes a new instance of the SessionScope class.
protected SessionScope ( FlushAction flushAction, SessionScopeType type ) : System.Collections.Generic
flushAction FlushAction The flush action.
type SessionScopeType The type.
Résultat System.Collections.Generic