System.Threading.ThreadHelper.SetExecutionContextHelper C# (CSharp) Method

SetExecutionContextHelper() private method

private SetExecutionContextHelper ( ExecutionContext ec ) : void
ec ExecutionContext
return void
        internal void SetExecutionContextHelper(ExecutionContext ec)
        {
            _executionContext = ec;
        }
        static internal ContextCallback _ccb = new ContextCallback(ThreadStart_Context);

Usage Example

        private void Start(ref StackCrawlMark stackMark)
        {
            this.StartupSetApartmentStateInternal();
            if (this.m_Delegate != null)
            {
                ThreadHelper target = (ThreadHelper)this.m_Delegate.Target;
                System.Threading.ExecutionContext ec = System.Threading.ExecutionContext.Capture(ref stackMark, System.Threading.ExecutionContext.CaptureOptions.IgnoreSyncCtx);
                target.SetExecutionContextHelper(ec);
            }
            IPrincipal principal = CallContext.Principal;

            this.StartInternal(principal, ref stackMark);
        }
All Usage Examples Of System.Threading.ThreadHelper::SetExecutionContextHelper