internal override void ChangeStatePreparing(InternalEnlistment enlistment)
 {
     // This enlistment was told to abort before being told to prepare
 }
 internal override void InternalAborted(InternalEnlistment enlistment)
 {
     // Already working on it.
 }
 internal override void EnlistmentDone(InternalEnlistment enlistment)
 {
     // Move this enlistment to the ended state
     VolatileEnlistmentEnded.EnterState(enlistment);
 }
 internal override void EnterState(InternalEnlistment enlistment)
 {
     // Set the enlistment state
     enlistment.State = this;
 }
 internal override void InternalAborted(InternalEnlistment enlistment)
 {
     // If this event comes from multiple places just ignore it.  Continue
     // waiting for the enlistment to respond so that we can respond to it.
 }
 internal override void InternalIndoubt(InternalEnlistment enlistment)
 {
     // Change the enlistment state to InDoubt.
     VolatileEnlistmentInDoubt.EnterState(enlistment);
 }
 internal override void ChangeStatePreparing(InternalEnlistment enlistment)
 {
     // This would happen in the second pass of a phase 0 wave.
 }
 internal override void InternalAborted(InternalEnlistment enlistment)
 {
     VolatileEnlistmentAborting.EnterState(enlistment);
 }
 internal override void InternalCommitted(InternalEnlistment enlistment)
 {
     VolatileEnlistmentCommitting.EnterState(enlistment);
 }
 internal override void Committed(InternalEnlistment enlistment)
 {
     VolatileEnlistmentEnded.EnterState(enlistment);
     enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction);
 }
        internal override void Aborted(InternalEnlistment enlistment, Exception e)
        {
            VolatileEnlistmentEnded.EnterState(enlistment);

            enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e);
        }
 internal override void InternalAborted(InternalEnlistment enlistment)
 {
     // Change the enlistment state to aborting.
     VolatileEnlistmentAborting.EnterState(enlistment);
 }
 internal override void ChangeStateSinglePhaseCommit(InternalEnlistment enlistment)
 {
     VolatileEnlistmentSPC.EnterState(enlistment);
 }
 internal override void ChangeStatePreparing(InternalEnlistment enlistment)
 {
     VolatileEnlistmentPreparing.EnterState(enlistment);
 }
 // Override of get_RecoveryInformation to be more specific with the exception string.
 internal override byte[] RecoveryInformation(InternalEnlistment enlistment)
 {
     throw TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceLtm,
                                                                SR.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);
 }
Example #16
0
 internal Enlistment(InternalEnlistment internalEnlistment)
 {
     _internalEnlistment = internalEnlistment;
 }