C# 클래스 Amnesia.SessionTracker

파일 보기 프로젝트 열기: vc3/Amnesia 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DecrementActivityCount void
EnsureNotPaused void
Pause void
Resume void

공개 메소드들

메소드 설명
AssertActivityStarted ( ) : void

Throws an exception if the current thread is not tied to an activity

AsyncDependentActivityEnded ( ) : void

Called by the async thread when its activity is complete

AsyncDependentActivityIdentified ( ) : ActivityInfo

Called by the thread that is initiating an async activity on a second thread.

AsyncDependentActivityStarted ( ActivityInfo parentActivity ) : void

Called by the thread executing the async activity

EndActivity ( ) : void

Ends an activity started with StartActivity or AsyncActivityStarted

Exclusive ( int timeoutMS, ILog log ) : IDisposable

Stop all new activities and wait for the current ones to complete. When this method returns, all activities (execpt for the current Amnesia one) will have completed and any future activities will be denied.

ParallelDependentActivityCompleted ( ) : void

Called by the thread that is initiating a parallel activity to indicate that all threads should be completed.

ParallelDependentActivityEnded ( ) : void

Called by the async thread when its activity is complete

ParallelDependentActivityIdentified ( ) : ActivityInfo

Called by the thread that is initiating an async activity on a second thread.

ParallelDependentActivityStarted ( ActivityInfo parentActivity ) : void

Called by the thread executing the async activity

StartActivity ( ) : void

비공개 메소드들

메소드 설명
DecrementActivityCount ( ) : void

Called when an activity is completed. Both async and sync activities.

EnsureNotPaused ( ) : void

Caller is responsible for synchronization

Pause ( int timeoutMS, ILog log ) : void

Stop all incoming activities and wait for the current activities to complete. When this method returns, all activities (except for the current Amnesia one) will have completed and any future activities will be denied.

Resume ( ) : void

Allow new activites to start

메소드 상세

AssertActivityStarted() 공개 메소드

Throws an exception if the current thread is not tied to an activity
public AssertActivityStarted ( ) : void
리턴 void

AsyncDependentActivityEnded() 공개 메소드

Called by the async thread when its activity is complete
public AsyncDependentActivityEnded ( ) : void
리턴 void

AsyncDependentActivityIdentified() 공개 메소드

Called by the thread that is initiating an async activity on a second thread.
public AsyncDependentActivityIdentified ( ) : ActivityInfo
리턴 ActivityInfo

AsyncDependentActivityStarted() 공개 메소드

Called by the thread executing the async activity
public AsyncDependentActivityStarted ( ActivityInfo parentActivity ) : void
parentActivity ActivityInfo
리턴 void

EndActivity() 공개 메소드

Ends an activity started with StartActivity or AsyncActivityStarted
public EndActivity ( ) : void
리턴 void

Exclusive() 공개 메소드

Stop all new activities and wait for the current ones to complete. When this method returns, all activities (execpt for the current Amnesia one) will have completed and any future activities will be denied.
public Exclusive ( int timeoutMS, ILog log ) : IDisposable
timeoutMS int
log ILog
리턴 IDisposable

ParallelDependentActivityCompleted() 공개 메소드

Called by the thread that is initiating a parallel activity to indicate that all threads should be completed.
public ParallelDependentActivityCompleted ( ) : void
리턴 void

ParallelDependentActivityEnded() 공개 메소드

Called by the async thread when its activity is complete
public ParallelDependentActivityEnded ( ) : void
리턴 void

ParallelDependentActivityIdentified() 공개 메소드

Called by the thread that is initiating an async activity on a second thread.
public ParallelDependentActivityIdentified ( ) : ActivityInfo
리턴 ActivityInfo

ParallelDependentActivityStarted() 공개 메소드

Called by the thread executing the async activity
public ParallelDependentActivityStarted ( ActivityInfo parentActivity ) : void
parentActivity ActivityInfo
리턴 void

StartActivity() 공개 메소드

public StartActivity ( ) : void
리턴 void