Property | Type | Description | |
---|---|---|---|
DecrementActivityCount | void | ||
EnsureNotPaused | void | ||
Pause | void | ||
Resume | void |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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
|
public AsyncDependentActivityEnded ( ) : void | ||
return | void |
public AsyncDependentActivityIdentified ( ) : ActivityInfo | ||
return | ActivityInfo |
public AsyncDependentActivityStarted ( ActivityInfo parentActivity ) : void | ||
parentActivity | ActivityInfo | |
return | void |
public Exclusive ( int timeoutMS, ILog log ) : IDisposable | ||
timeoutMS | int | |
log | ILog | |
return | IDisposable |
public ParallelDependentActivityCompleted ( ) : void | ||
return | void |
public ParallelDependentActivityEnded ( ) : void | ||
return | void |
public ParallelDependentActivityIdentified ( ) : ActivityInfo | ||
return | ActivityInfo |
public ParallelDependentActivityStarted ( ActivityInfo parentActivity ) : void | ||
parentActivity | ActivityInfo | |
return | void |