Capture() static private method

static private Capture ( System.Threading.StackCrawlMark &stackMark, CaptureOptions options ) : ExecutionContext
stackMark System.Threading.StackCrawlMark
options CaptureOptions
return ExecutionContext
Exemplo n.º 1
0
 public Invoker(SendOrPostCallback callback, object state)
 {
     _executionContext = ExecutionContext.Capture();
     _callback         = callback;
     _state            = state;
 }
Exemplo n.º 2
0
 internal _IOCompletionCallback(IOCompletionCallback ioCompletionCallback)
 {
     _ioCompletionCallback = ioCompletionCallback;
     // clone the exection context
     _executionContext = ExecutionContext.Capture();
 }