68 references to Transaction
System.Transactions.Local (68)
System\Transactions\DurableEnlistmentState.cs (29)
93
Monitor.Exit(enlistment.
Transaction
);
114
Monitor.Enter(enlistment.
Transaction
);
120
enlistment.
Transaction
._innerException ??= e;
144
Monitor.Exit(enlistment.
Transaction
);
170
Monitor.Enter(enlistment.
Transaction
);
182
Debug.Assert(enlistment.
Transaction
.State != null);
184
enlistment.
Transaction
.State.ChangeStateTransactionCommitted(enlistment.
Transaction
);
192
Debug.Assert(enlistment.
Transaction
.State != null);
194
enlistment.
Transaction
.State.ChangeStateTransactionCommitted(enlistment.
Transaction
);
202
Debug.Assert(enlistment.
Transaction
.State != null);
204
enlistment.
Transaction
.State.ChangeStateTransactionAborted(enlistment.
Transaction
, e);
212
enlistment.
Transaction
._innerException ??= e;
214
Debug.Assert(enlistment.
Transaction
.State != null);
216
enlistment.
Transaction
.State.InDoubtFromEnlistment(enlistment.
Transaction
);
239
Debug.Assert(enlistment.
Transaction
.State != null);
241
enlistment.
Transaction
.State.ChangeStatePromotedCommitted(enlistment.
Transaction
);
249
enlistment.
Transaction
._innerException ??= e;
251
Debug.Assert(enlistment.
Transaction
.State != null);
253
enlistment.
Transaction
.State.ChangeStatePromotedAborted(enlistment.
Transaction
);
261
enlistment.
Transaction
._innerException ??= e;
263
Debug.Assert(enlistment.
Transaction
.State != null);
268
enlistment.
Transaction
.State.InDoubtFromEnlistment(enlistment.
Transaction
);
System\Transactions\Enlistment.cs (11)
74
if (
Transaction
!= null)
76
returnValue =
Transaction
.DistributedTxId;
227
Transaction
._phase0Volatiles._preparedVolatileEnlistments++;
234
Debug.Assert(
Transaction
._phase0Volatiles._preparedVolatileEnlistments <=
235
Transaction
._phase0Volatiles._volatileEnlistmentCount +
Transaction
._phase0Volatiles._dependentClones);
238
if (
Transaction
._phase0Volatiles._preparedVolatileEnlistments ==
239
Transaction
._phase0VolatileWaveCount +
Transaction
._phase0Volatiles._dependentClones)
241
Transaction
.State!.Phase0VolatilePrepareDone(
Transaction
);
System\Transactions\VolatileEnlistmentState.cs (28)
138
Monitor.Exit(enlistment.
Transaction
);
152
Monitor.Enter(enlistment.
Transaction
);
179
Debug.Assert(enlistment.
Transaction
.State != null);
181
enlistment.
Transaction
.State.ChangeStateTransactionAborted(enlistment.
Transaction
, e);
219
Monitor.Exit(enlistment.
Transaction
);
234
Monitor.Enter(enlistment.
Transaction
);
241
Debug.Assert(enlistment.
Transaction
.State != null);
242
enlistment.
Transaction
.State.ChangeStateTransactionCommitted(enlistment.
Transaction
);
248
Debug.Assert(enlistment.
Transaction
.State != null);
249
enlistment.
Transaction
.State.ChangeStateTransactionCommitted(enlistment.
Transaction
);
256
Debug.Assert(enlistment.
Transaction
.State != null);
257
enlistment.
Transaction
.State.ChangeStateTransactionAborted(enlistment.
Transaction
, e);
264
enlistment.
Transaction
._innerException ??= e;
266
Debug.Assert(enlistment.
Transaction
.State != null);
267
enlistment.
Transaction
.State.InDoubtFromEnlistment(enlistment.
Transaction
);
337
if (enlistment.
Transaction
._innerException == null)
341
enlistment.
Transaction
._innerException = e;
363
Monitor.Exit(enlistment.
Transaction
);
377
Monitor.Enter(enlistment.
Transaction
);
406
Monitor.Exit(enlistment.
Transaction
);
421
Monitor.Enter(enlistment.
Transaction
);
440
Monitor.Exit(enlistment.
Transaction
);
455
Monitor.Enter(enlistment.
Transaction
);