Example #1
0
        private void T3_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            T3Timer timer_t3 = (T3Timer)sender;

            timer_t3.Stop();
            m_T3Hash.Remove(timer_t3.TransactionId);
            base.TransactionTimeout(timer_t3.TransactionId);
            System.Diagnostics.Debug.Print("T3_Elapsed [TID:{0}]", timer_t3.TransactionId);
            timer_t3.Dispose();
        }
Example #2
0
 private void Stop_T3_Timer(uint tid)
 {
     System.Diagnostics.Debug.Print("Stop_T3_Timer [TID:{0}]", tid);
     if (m_T3Hash.ContainsKey(tid))
     {
         T3Timer timer_t3 = (T3Timer)m_T3Hash[tid];
         timer_t3.Stop();
         m_T3Hash.Remove(tid);
     }
 }
Example #3
0
        private void Start_T3_Timer(uint tid)
        {
            System.Diagnostics.Debug.Print("Start_T3_Timer [TID:{0}]", tid);

            T3Timer timer_t3 = new T3Timer(tid);

            timer_t3.Interval = m_Parameters.T3_Interval * 1000;
            timer_t3.Elapsed += new System.Timers.ElapsedEventHandler(T3_Elapsed);
            timer_t3.Start();
            m_T3Hash.Add(tid, timer_t3);
        }
Example #4
0
 void T3_Timer_Start(uint tid)
 {
     lock (m_Locker)
     {
         T3Timer timer_t3 = new T3Timer(tid);
         timer_t3.Interval = m_Parameters.T3_Interval * 1000;
         timer_t3.Elapsed += new System.Timers.ElapsedEventHandler(T3_Timer_Elapsed);
         timer_t3.Start();
         m_T3Hash.Add(tid, timer_t3);
     }
 }
Example #5
0
 void T3_Timer_Start(uint tid)
 {
     Debug.Print("T3_Timer_Start [TID :=" + tid.ToString() + "]");
     lock (m_Locker)
     {
         T3Timer timer_t3 = new T3Timer(tid);
         timer_t3.Interval = m_Parameters.T3_Interval * 1000;
         timer_t3.Elapsed += new System.Timers.ElapsedEventHandler(T3_Timer_Elapsed);
         timer_t3.Start();
         m_T3Hash.Add(tid, timer_t3);
     }
 }
Example #6
0
 void T3_Timer_Stop(uint tid)
 {
     lock (m_Locker)
     {
         if (m_T3Hash.ContainsKey(tid))
         {
             T3Timer timer_t3 = (T3Timer)m_T3Hash[tid];
             timer_t3.Stop();
             m_T3Hash.Remove(tid);
         }
     }
 }
Example #7
0
        void T3_Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            T3Timer timer_t3 = (T3Timer)sender;

            timer_t3.Stop();

            WriteHsmsLog(string.Format("T3 Timedout [TID:{0}, Interval:{1} sec]",
                                       timer_t3.TransactionId, m_Parameters.T3_Interval));
            lock (m_Locker)
            {
                if (m_T3Hash.ContainsKey(timer_t3.TransactionId))
                {
                    m_T3Hash.Remove(timer_t3.TransactionId);
                }
            }
            //notifi base class trasaction timed out
            base.TransactionTimeout(timer_t3.TransactionId);

            timer_t3.Dispose();
        }