本文整理汇总了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