internal static object SetHostExecutionContextInternal(HostExecutionContext hostContext) { HostExecutionContextManager currentHostExecutionContextManager = GetCurrentHostExecutionContextManager(); object obj2 = null; if (currentHostExecutionContextManager != null) { obj2 = currentHostExecutionContextManager.SetHostExecutionContext(hostContext); } return(obj2); }
internal static object SetHostExecutionContextInternal(HostExecutionContext hostContext) { HostExecutionContextManager executionContextManager = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); object obj = (object)null; if (executionContextManager != null) { obj = executionContextManager.SetHostExecutionContext(hostContext); } return(obj); }
internal static Object SetHostExecutionContextInternal(HostExecutionContext hostContext) { HostExecutionContextManager hostMgr = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); Object switcher = null; if (hostMgr != null) { switcher = hostMgr.SetHostExecutionContext(hostContext); } return(switcher); }
internal static object SetHostExecutionContextInternal(HostExecutionContext hostContext) { HostExecutionContextManager currentHostExecutionContextManager = HostExecutionContextManager.GetCurrentHostExecutionContextManager(); object result = null; if (currentHostExecutionContextManager != null) { result = currentHostExecutionContextManager.SetHostExecutionContext(hostContext); } return(result); }