System.Threading.ExecutionContext.Capture C# (CSharp) Method

Capture() static private method

static private Capture ( System.Threading.StackCrawlMark &stackMark, CaptureOptions options ) : ExecutionContext
stackMark System.Threading.StackCrawlMark
options CaptureOptions
return ExecutionContext
		internal static ExecutionContext Capture (ref StackCrawlMark stackMark, CaptureOptions options)
		{
			return Capture ((options & CaptureOptions.IgnoreSyncCtx) == 0, false);
		}

Usage Example

Esempio n. 1
0
 public Invoker(SendOrPostCallback callback, object state)
 {
     _executionContext = ExecutionContext.Capture();
     _callback         = callback;
     _state            = state;
 }
All Usage Examples Of System.Threading.ExecutionContext::Capture
ExecutionContext