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);
 }
        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);
        }
Exemplo n.º 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)
 {
 }
 public virtual void OnEvent(TimerParticipantEvent e)
 {
     this.InvalidTimerEvent(e);
 }
 public override void OnEvent(TimerParticipantEvent e)
 {
 }
Exemplo n.º 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));
 }