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); }
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); }
public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) { }
public static void Restore(System.Threading.ExecutionContext executionContext) { }
public static void Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) { // Minimal implementation of ExecutionContext flow to enable APM. callback(state); }