public override void OnEvent(TimerParticipantEvent e)
 {
     ParticipantEnlistment participant = e.Participant;
     participant.Retries++;
     if (PrepareMessageRetryRecord.ShouldTrace)
     {
         PrepareMessageRetryRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.Retries);
     }
     base.state.Perf.PrepareRetryCountPerInterval.Increment();
     base.state.TwoPhaseCommitCoordinator.SendPrepare(participant);
 }
コード例 #2
0
        public override void OnEvent(TimerParticipantEvent e)
        {
            ParticipantEnlistment participant = e.Participant;

            participant.Retries++;
            if (PrepareMessageRetryRecord.ShouldTrace)
            {
                PrepareMessageRetryRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.Retries);
            }
            base.state.Perf.PrepareRetryCountPerInterval.Increment();
            base.state.TwoPhaseCommitCoordinator.SendPrepare(participant);
        }
コード例 #3
0
 public override void OnEvent(TimerParticipantEvent e)
 {
     if (e.Profile == TimerProfile.VolatileOutcomeAssurance)
     {
         ParticipantEnlistment participant = e.Participant;
         if (VolatileOutcomeTimeoutRecord.ShouldTrace)
         {
             VolatileOutcomeTimeoutRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, TransactionOutcome.Committed, base.state.Config.VolatileOutcomePolicy.InitialDelay);
         }
         base.state.TwoPhaseCommitCoordinator.SendCommit(participant);
         e.StateMachine.ChangeState(base.state.States.VolatileCommitted);
     }
 }
 public override void OnEvent(TimerParticipantEvent e)
 {
 }
コード例 #5
0
 public virtual void OnEvent(TimerParticipantEvent e)
 {
     this.InvalidTimerEvent(e);
 }
コード例 #6
0
 public override void OnEvent(TimerParticipantEvent e)
 {
 }
コード例 #7
0
 public virtual void OnEvent(TimerParticipantEvent e)
 {
     this.InvalidTimerEvent(e);
 }
 public void OnEvent(TimerParticipantEvent e)
 {
     DebugTrace.TxTrace(TraceLevel.Info, e.Enlistment.EnlistmentId, "{0} for {1} participant at {2}", e, e.Participant.ControlProtocol, Ports.TryGetAddress(e.Participant.ParticipantProxy));
 }