本文整理匯總了C#中System.Transactions.InternalTransaction.FireCompletion方法的典型用法代碼示例。如果您正苦於以下問題:C# InternalTransaction.FireCompletion方法的具體用法?C# InternalTransaction.FireCompletion怎麽用?C# InternalTransaction.FireCompletion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Transactions.InternalTransaction
的用法示例。
在下文中一共展示了InternalTransaction.FireCompletion方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: EnterState
internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
base.CommonEnterState(tx);
for (int i = 0; i < tx.phase0Volatiles.volatileEnlistmentCount; i++)
{
tx.phase0Volatiles.volatileEnlistments[i].twoPhaseState.InternalAborted(tx.phase0Volatiles.volatileEnlistments[i]);
}
for (int j = 0; j < tx.phase1Volatiles.volatileEnlistmentCount; j++)
{
tx.phase1Volatiles.volatileEnlistments[j].twoPhaseState.InternalAborted(tx.phase1Volatiles.volatileEnlistments[j]);
}
if (tx.durableEnlistment != null)
{
tx.durableEnlistment.State.InternalAborted(tx.durableEnlistment);
}
TransactionManager.TransactionTable.Remove(tx);
if (DiagnosticTrace.Warning)
{
TransactionAbortedTraceRecord.Trace(System.Transactions.SR.GetString("TraceSourceLtm"), tx.TransactionTraceId);
}
tx.FireCompletion();
if (tx.asyncCommit)
{
tx.SignalAsyncCompletion();
}
}
示例2: EnterState
internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
if (tx.phase1Volatiles.VolatileDemux != null)
{
tx.phase1Volatiles.VolatileDemux.BroadcastInDoubt(ref tx.phase1Volatiles);
}
if (tx.phase0Volatiles.VolatileDemux != null)
{
tx.phase0Volatiles.VolatileDemux.BroadcastInDoubt(ref tx.phase0Volatiles);
}
tx.FireCompletion();
if (DiagnosticTrace.Warning)
{
TransactionInDoubtTraceRecord.Trace(System.Transactions.SR.GetString("TraceSourceLtm"), tx.TransactionTraceId);
}
}
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:17,代碼來源:TransactionStatePromotedIndoubt.cs
示例3: EnterState
internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
// Notify the phase 0 enlistments that the transaction is indoubt
for (int i = 0; i < tx._phase0Volatiles._volatileEnlistmentCount; i++)
{
tx._phase0Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase0Volatiles._volatileEnlistments[i]);
}
// Notify the phase 1 enlistments that the transaction is indoubt
for (int i = 0; i < tx._phase1Volatiles._volatileEnlistmentCount; i++)
{
tx._phase1Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase1Volatiles._volatileEnlistments[i]);
}
// Fire Completion for anyone listening
tx.FireCompletion();
// We don't need to do the AsyncCompletion stuff. If it was needed, it was done out of SignalCallback.
TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
if (etwLog.IsEnabled())
{
etwLog.TransactionInDoubt(tx.TransactionTraceId);
}
}
示例4: EnterState
internal override void EnterState( InternalTransaction tx )
{
base.EnterState( tx );
// Tell all the enlistments the outcome.
if ( tx.phase1Volatiles.VolatileDemux != null )
{
tx.phase1Volatiles.VolatileDemux.BroadcastInDoubt( ref tx.phase1Volatiles );
}
if ( tx.phase0Volatiles.VolatileDemux != null )
{
tx.phase0Volatiles.VolatileDemux.BroadcastInDoubt( ref tx.phase0Volatiles );
}
// Fire Completion for anyone listening
tx.FireCompletion( );
// We don't need to do the AsyncCompletion stuff. If it was needed, it was done out of SignalCallback.
if ( DiagnosticTrace.Warning )
{
TransactionInDoubtTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ),
tx.TransactionTraceId
);
}
}
示例5: EnterState
internal override void EnterState(InternalTransaction tx)
{
base.EnterState(tx);
// Notify the phase 0 enlistments that the transaction is indoubt
for (int i = 0; i < tx._phase0Volatiles._volatileEnlistmentCount; i++)
{
tx._phase0Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase0Volatiles._volatileEnlistments[i]);
}
// Notify the phase 1 enlistments that the transaction is indoubt
for (int i = 0; i < tx._phase1Volatiles._volatileEnlistmentCount; i++)
{
tx._phase1Volatiles._volatileEnlistments[i]._twoPhaseState.InternalIndoubt(tx._phase1Volatiles._volatileEnlistments[i]);
}
// Fire Completion for anyone listening
tx.FireCompletion();
// We don't need to do the AsyncCompletion stuff. If it was needed, it was done out of SignalCallback.
if (DiagnosticTrace.Warning)
{
TransactionInDoubtTraceRecord.Trace(SR.TraceSourceLtm,
tx.TransactionTraceId
);
}
}