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
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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

FailSession() public method

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

PerformDisposal() protected method

Performs the disposal.
protected PerformDisposal ( ICollection sessions ) : void
sessions ICollection The sessions.
return void

SessionScope() public method

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

SessionScope() public method

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

SessionScope() protected method

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.
return System.Collections.Generic