当前位置: 首页>>代码示例>>C#>>正文


C# InternalEnlistment.FinishEnlistment方法代码示例

本文整理汇总了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();
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:5,代码来源:VolatileEnlistmentActive.cs

示例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();
        }
开发者ID:Corillian,项目名称:corefx,代码行数:17,代码来源:VolatileEnlistmentState.cs

示例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();
        }
开发者ID:Corillian,项目名称:corefx,代码行数:8,代码来源:VolatileEnlistmentState.cs

示例5: EnlistmentDone

        internal override void EnlistmentDone(InternalEnlistment enlistment)
        {
            VolatileEnlistmentDone.EnterState(enlistment);

            // Process Finished InternalEnlistment
            enlistment.FinishEnlistment();
        }
开发者ID:Corillian,项目名称:corefx,代码行数:7,代码来源:VolatileEnlistmentState.cs

示例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


注:本文中的System.Transactions.InternalEnlistment.FinishEnlistment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。