3 instantiations of ContextData
System.Transactions (3)
System\Transactions\Transaction.cs (2)
1491
return ContextDataTable.GetValue(contextKey, (env) => new
ContextData
(true));
1577
data = new
ContextData
(false);
System\Transactions\TransactionScope.cs (1)
1207
this.savedTLSContextData = new
ContextData
(false);
34 references to ContextData
System.Transactions (34)
System\Transactions\Transaction.cs (18)
136
private static Transaction JitSafeGetContextTransaction(
ContextData
contextData)
196
internal static Transaction GetContextTransaction(
ContextData
contextData)
236
internal static Transaction FastGetTransaction(TransactionScope currentScope,
ContextData
contextData, out Transaction contextTransaction)
302
ContextData
contextData =
ContextData
.LookupContextData(defaultLookup);
357
if (InteropMode(
ContextData
.TLSCurrentData.CurrentScope) != EnterpriseServicesInteropOption.None)
370
ContextData
.TLSCurrentData.CurrentTransaction = value;
1482
static readonly ConditionalWeakTable<ContextKey,
ContextData
> ContextDataTable = new ConditionalWeakTable<ContextKey,
ContextData
>();
1488
static public
ContextData
CreateOrGetCurrentData(ContextKey contextKey)
1514
static public bool TryGetCurrentData(out
ContextData
currentData)
1563
private static
ContextData
staticData;
1570
internal static
ContextData
TLSCurrentData
1574
ContextData
data = staticData;
1600
internal static
ContextData
LookupContextData(TxLookup defaultLookup)
1602
ContextData
currentData = null;
1609
return
ContextData
.TLSCurrentData;
1616
return
ContextData
.TLSCurrentData;
System\Transactions\TransactionScope.cs (16)
1075
ContextData
.TLSCurrentData = null;
1081
this.threadContextData =
ContextData
.TLSCurrentData;
1124
ContextData
.TLSCurrentData = null;
1128
this.threadContextData =
ContextData
.TLSCurrentData;
1145
ContextData
.TLSCurrentData = null;
1150
ContextData
.TLSCurrentData = this.threadContextData;
1210
this.savedTLSContextData.CurrentScope =
ContextData
.TLSCurrentData.CurrentScope;
1211
this.savedTLSContextData.CurrentTransaction =
ContextData
.TLSCurrentData.CurrentTransaction;
1212
this.savedTLSContextData.DefaultComContextState =
ContextData
.TLSCurrentData.DefaultComContextState;
1213
this.savedTLSContextData.WeakDefaultComContext =
ContextData
.TLSCurrentData.WeakDefaultComContext;
1220
ContextData
.TLSCurrentData.CurrentScope = this.savedTLSContextData.CurrentScope;
1221
ContextData
.TLSCurrentData.CurrentTransaction = this.savedTLSContextData.CurrentTransaction;
1222
ContextData
.TLSCurrentData.DefaultComContextState = this.savedTLSContextData.DefaultComContextState;
1223
ContextData
.TLSCurrentData.WeakDefaultComContext = this.savedTLSContextData.WeakDefaultComContext;
1407
ContextData
threadContextData;
1409
ContextData
savedTLSContextData;