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

◆ PopScope()

void System.Transactions.TransactionScope.PopScope ( )
inlineprivate

Definition at line 656 of file TransactionScope.cs.

657 {
658 bool flag = true;
660 {
661 CallContextCurrentData.ClearCurrentData(ContextKey, removeContextData: true);
662 }
664 {
666 }
667 if (_savedCurrentScope != null)
668 {
670 {
671 _threadContextData = CallContextCurrentData.CreateOrGetCurrentData(_savedCurrentScope.ContextKey);
672 }
673 else
674 {
676 {
677 flag = false;
678 ContextData.TLSCurrentData = null;
679 }
680 else
681 {
683 }
684 CallContextCurrentData.ClearCurrentData(_savedCurrentScope.ContextKey, removeContextData: false);
685 }
686 }
687 else
688 {
689 CallContextCurrentData.ClearCurrentData(null, removeContextData: false);
691 {
692 flag = false;
693 ContextData.TLSCurrentData = null;
694 }
695 else
696 {
697 ContextData.TLSCurrentData = _threadContextData;
698 }
699 }
700 if (flag)
701 {
702 _threadContextData.CurrentScope = _savedCurrentScope;
704 }
705 }
static Thread CurrentThread
Definition Thread.cs:312
static ContextData TLSCurrentData

References System.Transactions.TransactionScope._savedCurrentScope, System.Transactions.TransactionScope._scopeThread, System.Transactions.TransactionScope._threadContextData, System.Transactions.TransactionScope.AsyncFlowEnabled, System.Transactions.CallContextCurrentData.ClearCurrentData(), System.Transactions.TransactionScope.ContextKey, System.Transactions.CallContextCurrentData.CreateOrGetCurrentData(), System.Threading.Thread.CurrentThread, System.Transactions.TransactionScope.RestoreCurrent(), System.Transactions.TransactionScope.RestoreSavedTLSContextData(), and System.Transactions.ContextData.TLSCurrentData.

Referenced by System.Transactions.TransactionScope.Dispose(), and System.Transactions.TransactionScope.InternalDispose().