コード例 #1
0
ファイル: Thread.cs プロジェクト: randomize/VimConfig
 internal void SetExecutionContext(System.Threading.ExecutionContext value)
 {
     this.m_ExecutionContext = value;
     if (value != null)
     {
         this.m_ExecutionContext.Thread = this;
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Thread.cs プロジェクト: randomize/VimConfig
        public void Start()
        {
            this.StartupSetApartmentStateInternal();
            if (this.m_Delegate != null)
            {
                ThreadHelper target = (ThreadHelper)this.m_Delegate.Target;
                System.Threading.ExecutionContext ec = System.Threading.ExecutionContext.Capture();
                System.Threading.ExecutionContext.ClearSyncContext(ec);
                target.SetExecutionContextHelper(ec);
            }
            IPrincipal     principal       = CallContext.Principal;
            StackCrawlMark lookForMyCaller = StackCrawlMark.LookForMyCaller;

            this.StartInternal(principal, ref lookForMyCaller);
        }
コード例 #4
0
ファイル: System.Threading.cs プロジェクト: zhangzdb/corefx
 public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
 {
 }
コード例 #5
0
ファイル: System.Threading.cs プロジェクト: yhl533556/runtime
 public static void Restore(System.Threading.ExecutionContext executionContext)
 {
 }
コード例 #6
0
ファイル: Thread.cs プロジェクト: randomize/VimConfig
 internal void SetExecutionContext(System.Threading.ExecutionContext value)
 {
     this.m_ExecutionContext = value;
     if (value != null)
     {
         this.m_ExecutionContext.Thread = this;
     }
 }
コード例 #7
0
ファイル: ExecutionContext.cs プロジェクト: thiagodin/corefx
 public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
 {
     // Minimal implementation of ExecutionContext flow to enable APM.
     callback(state);
 }