Esempio n. 1
0
        public override void OnEvent(TmPrepareResponseEvent e)
        {
            Microsoft.Transactions.Wsat.StateMachines.State coordinatorAborted;
            CoordinatorEnlistment coordinator = e.Coordinator;

            switch (e.Status)
            {
            case Status.Aborted:
                coordinatorAborted = base.state.States.CoordinatorAborted;
                break;

            case Status.Prepared:
                base.state.TwoPhaseCommitParticipant.SendPrepared(coordinator);
                coordinatorAborted = base.state.States.CoordinatorPrepared;
                break;

            case Status.Readonly:
                base.state.TwoPhaseCommitParticipant.SendDurableReadOnly(coordinator);
                coordinatorAborted = base.state.States.CoordinatorReadOnlyInDoubt;
                break;

            default:
                DiagnosticUtility.FailFast("Invalid status code");
                coordinatorAborted = null;
                break;
            }
            e.StateMachine.ChangeState(coordinatorAborted);
        }
 public virtual void OnEvent(TmPrepareResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
Esempio n. 3
0
 public virtual void OnEvent(TmPrepareResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
 public override void OnEvent(TmPrepareResponseEvent e)
 {
 }
Esempio n. 5
0
 public override void OnEvent(TmPrepareResponseEvent e)
 {
 }
 public void OnEvent(TmPrepareResponseEvent e)
 {
     this.TraceTmResponse(e, e.Status);
 }