FastCapture() static private method

static private FastCapture ( ) : ExecutionContext
return ExecutionContext
Esempio n. 1
0
            public Invoker(SendOrPostCallback callback, object state)
            {
                _executionContext = ExecutionContext.FastCapture();
                _callback         = callback;
                _state            = state;

                if (FrameworkEventSource.Log.IsEnabled(EventLevel.Informational, FrameworkEventSource.Keywords.ThreadTransfer))
                {
                    EtwFireThreadTransferSendObj(this);
                }
            }