Capture() static private method

static private Capture ( System.Threading.StackCrawlMark &stackMark, CaptureOptions options ) : ExecutionContext
stackMark System.Threading.StackCrawlMark
options CaptureOptions
return ExecutionContext
コード例 #1
0
 public Invoker(SendOrPostCallback callback, object state)
 {
     _executionContext = ExecutionContext.Capture();
     _callback         = callback;
     _state            = state;
 }
コード例 #2
0
ファイル: Overlapped.cs プロジェクト: treesportrait/coreclr
 internal _IOCompletionCallback(IOCompletionCallback ioCompletionCallback)
 {
     _ioCompletionCallback = ioCompletionCallback;
     // clone the exection context
     _executionContext = ExecutionContext.Capture();
 }