Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Revert()

virtual void System.Threading.HostExecutionContextManager.Revert ( object previousState)
inlinevirtual

Definition at line 38 of file HostExecutionContextManager.cs.

39 {
40 if (!(previousState is HostExecutionContextSwitcher hostExecutionContextSwitcher))
41 {
43 }
44 if (t_currentContext != hostExecutionContextSwitcher._currentContext || hostExecutionContextSwitcher._asyncLocal == null || !hostExecutionContextSwitcher._asyncLocal.Value)
45 {
47 }
48 hostExecutionContextSwitcher._asyncLocal = null;
49 t_currentContext = null;
50 }
static string HostExecutionContextManager_InvalidOperation_CannotUseSwitcherOtherThread
Definition SR.cs:64
static string HostExecutionContextManager_InvalidOperation_CannotOverrideSetWithoutRevert
Definition SR.cs:62
Definition SR.cs:7

References System.SR.HostExecutionContextManager_InvalidOperation_CannotOverrideSetWithoutRevert, System.SR.HostExecutionContextManager_InvalidOperation_CannotUseSwitcherOtherThread, and System.Threading.HostExecutionContextManager.t_currentContext.