- hostExecutionContext
- The System.Threading.HostExecutionContext to be set.
An object for restoring the System.Threading.HostExecutionContext to its previous state.
The HostExecutionContextManager.SetHostExecutionContext(HostExecutionContext) method sets the host execution context for the current System.Threading.HostExecutionContext. A System.Threading.HostExecutionContext that has been used as the argument to another HostExecutionContextManager.SetHostExecutionContext(HostExecutionContext) method call cannot be passed in as the parameter for this method. Instead, use the HostExecutionContext.CreateCopy method to create a copy of a System.Threading.HostExecutionContext object and then use the copy to set the host execution context.
Call the HostExecutionContextManager.Revert(object) method using the object returned by this method to restore the System.Threading.HostExecutionContext to its previous state.