當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。