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

◆ EnlistVolatile() [1/2]

Enlistment System.Transactions.Transaction.EnlistVolatile ( IEnlistmentNotification enlistmentNotification,
EnlistmentOptions enlistmentOptions )
inlineinherited

Definition at line 444 of file Transaction.cs.

445 {
446 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
447 if (log.IsEnabled())
448 {
449 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "EnlistVolatile");
450 }
451 if (Disposed)
452 {
453 throw new ObjectDisposedException("Transaction");
454 }
455 if (enlistmentNotification == null)
456 {
457 throw new ArgumentNullException("enlistmentNotification");
458 }
459 if (enlistmentOptions != 0 && enlistmentOptions != EnlistmentOptions.EnlistDuringPrepareRequired)
460 {
461 throw new ArgumentOutOfRangeException("enlistmentOptions");
462 }
463 if (_complete)
464 {
465 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
466 }
468 {
470 if (log.IsEnabled())
471 {
472 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "EnlistVolatile");
473 }
474 return result;
475 }
476 }
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.