Beispiel #1
0
 internal void SetExecutionContext(System.Threading.ExecutionContext value)
 {
     this.m_ExecutionContext = value;
     if (value != null)
     {
         this.m_ExecutionContext.Thread = this;
     }
 }
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
 {
 }
Beispiel #5
0
 public static void Restore(System.Threading.ExecutionContext executionContext)
 {
 }
Beispiel #6
0
 internal void SetExecutionContext(System.Threading.ExecutionContext value)
 {
     this.m_ExecutionContext = value;
     if (value != null)
     {
         this.m_ExecutionContext.Thread = this;
     }
 }
Beispiel #7
0
 public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
 {
     // Minimal implementation of ExecutionContext flow to enable APM.
     callback(state);
 }