3 instantiations of ContextData
System.Transactions.Local (3)
System\Transactions\Transaction.cs (2)
1074return s_contextDataTable.GetValue(contextKey, (env) => new ContextData(true)); 1140get => t_staticData ??= new ContextData(false);
System\Transactions\TransactionScope.cs (1)
1074_savedTLSContextData ??= new ContextData(false);
29 references to ContextData
System.Transactions.Local (29)
System\Transactions\Transaction.cs (13)
81internal static Transaction? FastGetTransaction(TransactionScope? currentScope, ContextData contextData, out Transaction? contextTransaction) 143ContextData contextData = ContextData.LookupContextData(defaultLookup); 191if (InteropMode(ContextData.TLSCurrentData.CurrentScope) != EnterpriseServicesInteropOption.None) 202ContextData.TLSCurrentData.CurrentTransaction = value; 1065private static readonly ConditionalWeakTable<ContextKey, ContextData> s_contextDataTable = new ConditionalWeakTable<ContextKey, ContextData>(); 1071public static ContextData CreateOrGetCurrentData(ContextKey contextKey) 1097public static bool TryGetCurrentData([NotNullWhen(true)] out ContextData? currentData) 1130private static ContextData? t_staticData; 1138internal static ContextData TLSCurrentData 1158internal static ContextData LookupContextData(TxLookup defaultLookup) 1160ContextData? currentData;
System\Transactions\TransactionScope.cs (16)
945ContextData.TLSCurrentData = null; 951_threadContextData = ContextData.TLSCurrentData; 994ContextData.TLSCurrentData = null; 998_threadContextData = ContextData.TLSCurrentData; 1015ContextData.TLSCurrentData = null; 1020ContextData.TLSCurrentData = _threadContextData; 1076_savedTLSContextData.CurrentScope = ContextData.TLSCurrentData.CurrentScope; 1077_savedTLSContextData.CurrentTransaction = ContextData.TLSCurrentData.CurrentTransaction; 1078_savedTLSContextData.DefaultComContextState = ContextData.TLSCurrentData.DefaultComContextState; 1079_savedTLSContextData.WeakDefaultComContext = ContextData.TLSCurrentData.WeakDefaultComContext; 1086ContextData.TLSCurrentData.CurrentScope = _savedTLSContextData.CurrentScope; 1087ContextData.TLSCurrentData.CurrentTransaction = _savedTLSContextData.CurrentTransaction; 1088ContextData.TLSCurrentData.DefaultComContextState = _savedTLSContextData.DefaultComContextState; 1089ContextData.TLSCurrentData.WeakDefaultComContext = _savedTLSContextData.WeakDefaultComContext; 1183private ContextData? _threadContextData; 1185private ContextData? _savedTLSContextData;