C# Class Castle.Facilities.NHibernateIntegration.SessionStores.AbstractSessionStore

Inheritance: System.MarshalByRefObject, ISessionStore
Show file Open project: mahara/Castle.Facilities.NHibernateIntegration

Public Methods

Method Description
FindCompatibleSession ( String alias ) : SessionDelegate

Should return a previously stored session for the given alias if available, otherwise null.

FindCompatibleStatelessSession ( string alias ) : StatelessSessionDelegate

Should return a previously stored stateless session for the given alias if available, otherwise null.

IsCurrentActivityEmptyFor ( String alias ) : bool

Returns true if the current activity (which is an execution activity context) has no sessions available

Remove ( SessionDelegate session ) : void

Should remove the session from the store only.

Remove ( StatelessSessionDelegate session ) : void

Should remove the stateless session from the store only.

Store ( String alias, SessionDelegate session ) : void

Should store the specified session instance

Store ( string alias, StatelessSessionDelegate session ) : void

Should store the specified stateless session instance.

Protected Methods

Method Description
GetStackFor ( String alias ) : Stack

Gets the stack of SessionDelegate objects for the specified alias.

GetStatelessSessionStackFor ( String alias ) : Stack

Gets the stack of StatelessSessionDelegate objects for the specified alias.

Method Details

FindCompatibleSession() public method

Should return a previously stored session for the given alias if available, otherwise null.
public FindCompatibleSession ( String alias ) : SessionDelegate
alias String
return SessionDelegate

FindCompatibleStatelessSession() public method

Should return a previously stored stateless session for the given alias if available, otherwise null.
public FindCompatibleStatelessSession ( string alias ) : StatelessSessionDelegate
alias string
return StatelessSessionDelegate

GetStackFor() protected abstract method

Gets the stack of SessionDelegate objects for the specified alias.
protected abstract GetStackFor ( String alias ) : Stack
alias String The alias.
return System.Collections.Stack

GetStatelessSessionStackFor() protected abstract method

Gets the stack of StatelessSessionDelegate objects for the specified alias.
protected abstract GetStatelessSessionStackFor ( String alias ) : Stack
alias String The alias.
return System.Collections.Stack

IsCurrentActivityEmptyFor() public method

Returns true if the current activity (which is an execution activity context) has no sessions available
public IsCurrentActivityEmptyFor ( String alias ) : bool
alias String
return bool

Remove() public method

Should remove the session from the store only.
public Remove ( SessionDelegate session ) : void
session SessionDelegate
return void

Remove() public method

Should remove the stateless session from the store only.
public Remove ( StatelessSessionDelegate session ) : void
session StatelessSessionDelegate
return void

Store() public method

Should store the specified session instance
public Store ( String alias, SessionDelegate session ) : void
alias String
session SessionDelegate
return void

Store() public method

Should store the specified stateless session instance.
public Store ( string alias, StatelessSessionDelegate session ) : void
alias string
session StatelessSessionDelegate
return void