Exemplo n.º 1
0
 public override void OnEvent(TmRegisterResponseEvent e)
 {
     base.ProcessTmRegisterResponse(e);
     if (e.Status == Status.Success)
     {
         e.StateMachine.ChangeState(base.state.States.VolatilePhaseZeroActive);
     }
     else
     {
         e.StateMachine.ChangeState(base.state.States.VolatileInitializationFailed);
     }
 }
Exemplo n.º 2
0
        protected void ProcessTmRegisterResponse(TmRegisterResponseEvent e)
        {
            ParticipantEnlistment participant = e.Participant;
            MsgRegisterEvent      sourceEvent = e.SourceEvent;

            if (e.Status != Status.Success)
            {
                Fault fault = this.state.Faults.ParticipantTMRegistrationFailed(e.Status);
                this.state.RegistrationCoordinator.SendFault(sourceEvent.Result, fault);
                if (RegisterParticipantFailureRecord.ShouldTrace)
                {
                    RegisterParticipantFailureRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.ControlProtocol, participant.ParticipantProxy.To, Microsoft.Transactions.SR.GetString("PplCreateSubordinateEnlistmentFailed", new object[] { e.Status.ToString() }), this.state.ProtocolVersion);
                }
            }
            else
            {
                participant.OnParticipantRegistered();
                this.state.RegistrationCoordinator.SendRegisterResponse(participant, sourceEvent.Result, sourceEvent.Protocol, participant.CoordinatorService);
                if (RegisterParticipantRecord.ShouldTrace)
                {
                    RegisterParticipantRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.ControlProtocol, participant.ParticipantProxy.To, this.state.ProtocolVersion);
                }
            }
        }
 protected void ProcessTmRegisterResponse(TmRegisterResponseEvent e)
 {
     ParticipantEnlistment participant = e.Participant;
     MsgRegisterEvent sourceEvent = e.SourceEvent;
     if (e.Status != Status.Success)
     {
         Fault fault = this.state.Faults.ParticipantTMRegistrationFailed(e.Status);
         this.state.RegistrationCoordinator.SendFault(sourceEvent.Result, fault);
         if (RegisterParticipantFailureRecord.ShouldTrace)
         {
             RegisterParticipantFailureRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.ControlProtocol, participant.ParticipantProxy.To, Microsoft.Transactions.SR.GetString("PplCreateSubordinateEnlistmentFailed", new object[] { e.Status.ToString() }), this.state.ProtocolVersion);
         }
     }
     else
     {
         participant.OnParticipantRegistered();
         this.state.RegistrationCoordinator.SendRegisterResponse(participant, sourceEvent.Result, sourceEvent.Protocol, participant.CoordinatorService);
         if (RegisterParticipantRecord.ShouldTrace)
         {
             RegisterParticipantRecord.Trace(participant.EnlistmentId, participant.Enlistment.RemoteTransactionId, participant.ControlProtocol, participant.ParticipantProxy.To, this.state.ProtocolVersion);
         }
     }
 }
 public virtual void OnEvent(TmRegisterResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
Exemplo n.º 5
0
 public virtual void OnEvent(TmRegisterResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
 public void OnEvent(TmRegisterResponseEvent e)
 {
     DebugTrace.TxTrace(TraceLevel.Info, e.Enlistment.EnlistmentId, "{0} {1} for {2}", e, e.Status, e.Participant.ControlProtocol);
 }