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.
Afficher le fichier Open project: SQLServerIO/TPCCBench Class Usage Examples

Méthodes publiques

Méthode Description
Apply ( CallerThreadContext callerThreadContext ) : void

Applies the thread context stored earlier

Capture ( bool captureCallContext, bool captureHttpContext ) : CallerThreadContext

Captures the current thread context

Private Methods

Méthode Description
CallerThreadContext ( ) : System

Constructor

GetHttpContextSlotName ( ) : string

Method Details

Apply() public static méthode

Applies the thread context stored earlier
public static Apply ( CallerThreadContext callerThreadContext ) : void
callerThreadContext CallerThreadContext
Résultat void

Capture() public static méthode

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