コード例 #1
0
        public override void OnEvent(TmReplayEvent e)
        {
            CoordinatorEnlistment coordinator = e.Coordinator;

            coordinator.SetCallback(e.Callback, e.CallbackState);
            base.state.TransactionManagerSend.Replayed(coordinator);
        }
 public override void OnEvent(TmReplayEvent e)
 {
     if (base.state.Recovering)
     {
         DiagnosticUtility.FailFast("Replay events should only be re-delivered after recovery");
     }
     e.StateMachine.ChangeState(base.state.States.CoordinatorRecovered);
 }
 public override void OnEvent(TmReplayEvent e)
 {
     if (base.state.Recovering)
     {
         DiagnosticUtility.FailFast("Replay events should only be re-delivered after recovery");
     }
     e.StateMachine.ChangeState(base.state.States.CoordinatorRecovered);
 }
 public override void OnEvent(TmReplayEvent e)
 {
     if (!base.state.Recovering)
     {
         DiagnosticUtility.FailFast("Replay events should only be delivered during recovery");
     }
     CoordinatorEnlistment coordinator = e.Coordinator;
     base.state.EnqueueRecoveryReplay(e);
     coordinator.SetCallback(e.Callback, e.CallbackState);
     base.state.TransactionManagerSend.Replayed(coordinator);
     e.StateMachine.ChangeState(base.state.States.CoordinatorAwaitingEndOfRecovery);
 }
コード例 #5
0
 public void EnqueueRecoveryReplay(TmReplayEvent e)
 {
     if (!this.recovering)
     {
         Microsoft.Transactions.Bridge.DiagnosticUtility.FailFast("Cannot enqueue recovery event outside of recovery");
     }
     if (DebugTrace.Info)
     {
         CoordinatorEnlistment coordinator = e.Coordinator;
         DebugTrace.TxTrace(TraceLevel.Info, coordinator.EnlistmentId, "Enqueuing recovery replay for coordinator at {0}", Ports.TryGetAddress(coordinator.CoordinatorProxy));
     }
     this.recoveryQueue.Enqueue(e);
 }
コード例 #6
0
        public override void OnEvent(TmReplayEvent e)
        {
            if (!base.state.Recovering)
            {
                DiagnosticUtility.FailFast("Replay events should only be delivered during recovery");
            }
            CoordinatorEnlistment coordinator = e.Coordinator;

            base.state.EnqueueRecoveryReplay(e);
            coordinator.SetCallback(e.Callback, e.CallbackState);
            base.state.TransactionManagerSend.Replayed(coordinator);
            e.StateMachine.ChangeState(base.state.States.CoordinatorAwaitingEndOfRecovery);
        }
コード例 #7
0
 public virtual void OnEvent(TmReplayEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
コード例 #8
0
 public virtual void OnEvent(TmReplayEvent e)
 {
     this.InvalidTransactionManagerEvent(e);
 }
 public override void OnEvent(TmReplayEvent e)
 {
 }
コード例 #10
0
 public override void OnEvent(TmReplayEvent e)
 {
 }
 public override void OnEvent(TmReplayEvent e)
 {
     CoordinatorEnlistment coordinator = e.Coordinator;
     coordinator.SetCallback(e.Callback, e.CallbackState);
     base.state.TransactionManagerSend.Replayed(coordinator);
 }
 public void OnEvent(TmReplayEvent e)
 {
     this.TraceTmEvent(e);
 }