Пример #1
0
        public override void OnEvent(TmSubordinateRegisterResponseEvent e)
        {
            ParticipantEnlistment participant = e.Participant;
            Status status = e.Status;

            if (status == Status.Success)
            {
                participant.OnSubordinateRegistered();
                participant.StateMachine.ChangeState(base.state.States.SubordinateActive);
            }
            else
            {
                if ((status == Status.TransactionNotFound) && !base.state.TransactionManager.Settings.NetworkInboundAccess)
                {
                    participant.ContextManager.Fault = base.state.Faults.SubordinateRegistrationNetAccessDisabled;
                }
                else
                {
                    participant.ContextManager.Fault = base.state.Faults.SubordinateTMRegistrationFailed(status);
                }
                participant.StateMachine.ChangeState(base.state.States.SubordinateFinished);
            }
        }
 public virtual void OnEvent(TmSubordinateRegisterResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
Пример #3
0
 public virtual void OnEvent(TmSubordinateRegisterResponseEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
 public void OnEvent(TmSubordinateRegisterResponseEvent e)
 {
     DebugTrace.TxTrace(TraceLevel.Info, e.Enlistment.EnlistmentId, "{0} {1} for {2}", e, e.Status, e.Participant.ControlProtocol);
 }