C# Class Amib.Threading.CallerThreadContext

This class stores the caller call context in order to restore it when the work item is executed in the thread pool environment.
Show file Open project: SQLServerIO/TPCCBench Class Usage Examples

Public Methods

Method Description
Apply ( CallerThreadContext callerThreadContext ) : void

Applies the thread context stored earlier

Capture ( bool captureCallContext, bool captureHttpContext ) : CallerThreadContext

Captures the current thread context

Private Methods

Method Description
CallerThreadContext ( ) : System

Constructor

GetHttpContextSlotName ( ) : string

Method Details

Apply() public static method

Applies the thread context stored earlier
public static Apply ( CallerThreadContext callerThreadContext ) : void
callerThreadContext CallerThreadContext
return void

Capture() public static method

Captures the current thread context
public static Capture ( bool captureCallContext, bool captureHttpContext ) : CallerThreadContext
captureCallContext bool
captureHttpContext bool
return CallerThreadContext