void T3_Timer_Stop(uint transactionId, ref SecsMessageBase priMsg) { System.Diagnostics.Debug.Print("{0}: T3_Timer_Stop [TID:{1}]", m_ConnectProcedure, transactionId); T3Timer timer_t3 = (T3Timer)m_T3Hash[transactionId]; priMsg = timer_t3.Message; timer_t3.Stop(); m_T3Hash.Remove(transactionId); }
void T3_Timer_Start(SecsMessageBase msg) { System.Diagnostics.Debug.Print("{0}: T3_Timer_Start [TID:{1}]", m_ConnectProcedure, msg.TransactionId); T3Timer timer_t3 = new T3Timer(msg); timer_t3.Interval = m_T3_Interval * 1000; timer_t3.Elapsed += new System.Timers.ElapsedEventHandler(timer_t3_Elapsed); timer_t3.Start(); m_T3Hash.Add(msg.TransactionId, timer_t3); }
void T3_Elapsed(object sender, ElapsedEventArgs e) { T3Timer timer_t3 = (T3Timer)sender; timer_t3.Stop(); m_T3Hash.Remove(timer_t3.TransactionId); System.Diagnostics.Debug.Print("T3_Elapsed [TID:{0}]", timer_t3.TransactionId); timer_t3.Dispose(); }
void Stop_T3_Timer(uint transactionId, ref SecsMessageBase priMsg) { System.Diagnostics.Debug.Print("Stop_T3_Timer [TID:{0}]", transactionId); T3Timer timer_t3 = (T3Timer)m_T3Hash[transactionId]; priMsg = timer_t3.Message; timer_t3.Stop(); m_T3Hash.Remove(transactionId); }
void Start_T3_Timer(SecsMessageBase msg) { System.Diagnostics.Debug.Print("Start_T3_Timer [TID:{0}]", msg.TransactionId); T3Timer timer_t3 = new T3Timer(msg); timer_t3.Interval = m_T3_Interval * 1000; timer_t3.Elapsed += new System.Timers.ElapsedEventHandler(T3_Elapsed); timer_t3.Start(); m_T3Hash.Add(msg.TransactionId, timer_t3); }
void timer_t3_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { T3Timer timer_t3 = (T3Timer)sender; timer_t3.Stop(); System.Diagnostics.Debug.Print("{0}: T3_Timer_Elapsed [TID:{1}]", m_ConnectProcedure, timer_t3.TransactionId); m_T3Hash.Remove(timer_t3.TransactionId); //send S9F9 transaction timedout timer_t3.Dispose(); }