C# Класс Castle.ActiveRecord.SessionScope

Implementation of ISessionScope to augment performance by caching the session, thus avoiding too much opens/flushes/closes.
Наследование: Castle.ActiveRecord.Framework.Scopes.AbstractScope
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
PerformDisposal ( ICollection sessions ) : void

Performs the disposal.

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

Initializes a new instance of the SessionScope class.

Описание методов

Dispose() публичный Метод

Disposes the specified discard changes.
public Dispose ( bool discardChanges ) : void
discardChanges bool if set to true [discard changes].
Результат void

FailSession() публичный Метод

This is called when an action on a session fails
public FailSession ( ISession session ) : void
session ISession The session
Результат void

PerformDisposal() защищенный Метод

Performs the disposal.
protected PerformDisposal ( ICollection sessions ) : void
sessions ICollection The sessions.
Результат void

SessionScope() публичный Метод

Initializes a new instance of the SessionScope class.
public SessionScope ( ) : System.Collections.Generic
Результат System.Collections.Generic

SessionScope() публичный Метод

Initializes a new instance of the SessionScope class.
public SessionScope ( FlushAction flushAction ) : System.Collections.Generic
flushAction FlushAction The flush action.
Результат System.Collections.Generic

SessionScope() защищенный Метод

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.
Результат System.Collections.Generic