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

◆ EnlistDurable() [1/2]

Enlistment System.Transactions.Transaction.EnlistDurable ( Guid resourceManagerIdentifier,
IEnlistmentNotification enlistmentNotification,
EnlistmentOptions enlistmentOptions )
inlineinherited

Definition at line 324 of file Transaction.cs.

325 {
326 TransactionsEtwProvider log = TransactionsEtwProvider.Log;
327 if (log.IsEnabled())
328 {
329 log.MethodEnter(TraceSourceType.TraceSourceLtm, this, "EnlistDurable");
330 }
331 if (Disposed)
332 {
333 throw new ObjectDisposedException("Transaction");
334 }
335 if (resourceManagerIdentifier == Guid.Empty)
336 {
337 throw new ArgumentException(System.SR.BadResourceManagerId, "resourceManagerIdentifier");
338 }
339 if (enlistmentNotification == null)
340 {
341 throw new ArgumentNullException("enlistmentNotification");
342 }
343 if (enlistmentOptions != 0 && enlistmentOptions != EnlistmentOptions.EnlistDuringPrepareRequired)
344 {
345 throw new ArgumentOutOfRangeException("enlistmentOptions");
346 }
347 if (_complete)
348 {
349 throw TransactionException.CreateTransactionCompletedException(DistributedTxId);
350 }
352 {
354 if (log.IsEnabled())
355 {
356 log.MethodExit(TraceSourceType.TraceSourceLtm, this, "EnlistDurable");
357 }
358 return result;
359 }
360 }
static string BadResourceManagerId
Definition SR.cs:18
Definition SR.cs:7
virtual Enlistment EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction)
InternalTransaction _internalTransaction

References System.Transactions.Transaction._complete, System.Transactions.Transaction._internalTransaction, System.SR.BadResourceManagerId, System.Transactions.TransactionException.CreateTransactionCompletedException(), System.Runtime.Serialization.Dictionary, System.Transactions.Transaction.Disposed, System.Transactions.Transaction.DistributedTxId, System.Guid.Empty, System.Transactions.TransactionState.EnlistDurable(), System.Transactions.TransactionsEtwProvider.Log, and System.Transactions.InternalTransaction.State.