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
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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