A ThreadAbortScope executes a block of code inside a special scope that is designed to issue and safely handle Abort(Object) on demand.

Namespace:  Gallio.Common.Concurrency
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public class ThreadAbortScope
Visual Basic (Declaration)
Public Class ThreadAbortScope

Remarks

This class may be used as a primitive for implementing higher-level protected scopes for the purpose of asynchronous cancelation and time-limited execution.

The implementation distinguishes between Abort(Object)s that are initated using the Abort()()() method and those that may be initiated by other system components. Foreign aborts are not handled so they are allowed to continue to propagate. This is to ensure that critical aborts such as those that are initiated by Unload(AppDomain) can unwind the stack without interference.

Inheritance Hierarchy

System..::.Object
  Gallio.Common.Concurrency..::.ThreadAbortScope

See Also