internal static ExecutionContext Capture (ref StackCrawlMark stackMark, CaptureOptions options) { return Capture ((options & CaptureOptions.IgnoreSyncCtx) == 0, false); }
public Invoker(SendOrPostCallback callback, object state) { _executionContext = ExecutionContext.Capture(); _callback = callback; _state = state; }