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

FastCapture() static private method

static private FastCapture ( ) : ExecutionContext
return ExecutionContext
		internal static ExecutionContext FastCapture()
		{
			return Capture ();
		}

Usage Example

Beispiel #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);
                }
            }
ExecutionContext