本文整理匯總了C#中System.Transactions.InternalEnlistment.FinishEnlistment方法的典型用法代碼示例。如果您正苦於以下問題:C# InternalEnlistment.FinishEnlistment方法的具體用法?C# InternalEnlistment.FinishEnlistment怎麽用?C# InternalEnlistment.FinishEnlistment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Transactions.InternalEnlistment
的用法示例。
在下文中一共展示了InternalEnlistment.FinishEnlistment方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ForceRollback
internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
{
VolatileEnlistmentState._VolatileEnlistmentEnded.EnterState(enlistment);
if (enlistment.Transaction.innerException == null)
{
enlistment.Transaction.innerException = e;
}
enlistment.FinishEnlistment();
}
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:9,代碼來源:VolatileEnlistmentPreparingAborting.cs
示例2: EnlistmentDone
internal override void EnlistmentDone(InternalEnlistment enlistment)
{
VolatileEnlistmentState._VolatileEnlistmentDone.EnterState(enlistment);
enlistment.FinishEnlistment();
}
示例3: ForceRollback
// The enlistment says to abort start the abort sequence.
internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
{
// Change enlistment state to aborting
VolatileEnlistmentEnded.EnterState(enlistment);
// Record the exception in the transaction
if (enlistment.Transaction._innerException == null)
{
// Arguably this is the second call to ForceRollback and not the call that
// aborted the transaction but just in case.
enlistment.Transaction._innerException = e;
}
// Process Finished InternalEnlistment
enlistment.FinishEnlistment();
}
示例4: Prepared
internal override void Prepared(InternalEnlistment enlistment)
{
// The enlistment has respondend so changes it's state to aborting.
VolatileEnlistmentAborting.EnterState(enlistment);
// Process Finished InternalEnlistment
enlistment.FinishEnlistment();
}
示例5: EnlistmentDone
internal override void EnlistmentDone(InternalEnlistment enlistment)
{
VolatileEnlistmentDone.EnterState(enlistment);
// Process Finished InternalEnlistment
enlistment.FinishEnlistment();
}
示例6: Prepared
internal override void Prepared(InternalEnlistment enlistment)
{
VolatileEnlistmentState._VolatileEnlistmentPrepared.EnterState(enlistment);
enlistment.FinishEnlistment();
}
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:5,代碼來源:VolatileEnlistmentPreparing.cs
示例7: ForceRollback
internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
{
VolatileEnlistmentState._VolatileEnlistmentEnded.EnterState(enlistment);
enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e);
enlistment.FinishEnlistment();
}
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:6,代碼來源:VolatileEnlistmentPreparing.cs