コード例 #1
0
 private void OnConnectedHandler()
 {
     lock (m_connectOMCLocker)
     {
         if (Interlocked.Equals(m_isOMCAvailable, 0L))
         {
             SetOMCAvailable();
             SQLUtil.UpdateSvrStatus(m_Connstr, "1", "服务器连接成功!", m_SvrID.ToString());
             ClearNMAlarm(omcName, Constants.MO_SOURCEOMC, Constants.TKALM_OMCALM, DateTime.Now);
             SQLUtil.ClearOMCAlarm(m_Connstr, m_omc.Omc);
         }
     }
 }