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

◆ EnlistVolatile() [2/2]

Enlistment System.Transactions.Transaction.EnlistVolatile ( ISinglePhaseNotification singlePhaseNotification,
EnlistmentOptions enlistmentOptions )
inlineinherited

Definition at line 478 of file Transaction.cs.

479 {
480 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
481 if (log.IsEnabled())
482 {
483 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "EnlistVolatile");
484 }
485 if (Disposed)
486 {
487 throw new ObjectDisposedException("Transaction");
488 }
489 if (singlePhaseNotification == null)
490 {
491 throw new ArgumentNullException("singlePhaseNotification");
492 }
493 if (enlistmentOptions != 0 && enlistmentOptions != EnlistmentOptions.EnlistDuringPrepareRequired)
494 {
495 throw new ArgumentOutOfRangeException("enlistmentOptions");
496 }
497 if (_complete)
498 {
499 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
500 }
502 {
504 if (log.IsEnabled())
505 {
506 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "EnlistVolatile");
507 }
508 return result;
509 }
510 }
virtual Enlistment EnlistVolatile(InternalTransaction tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction)
InternalTransaction _internalTransaction

References System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.Transactions.TransactionException.CreateTransactionCompletedException(), System.Runtime.Serialization.Dictionary, System.Transactions.Transaction.Disposed, System.Transactions.Transaction.DistributedTxId, System.Transactions.TransactionState.EnlistVolatile(), System.Transactions.TransactionsEtwProvider.Log, and System.Transactions.InternalTransaction.State.