Exemple #1
0
 /// <summary>
 /// Swap internal data structure with tc
 /// </summary>
 /// <param name="tc">A valid Dataset object</param>
 /// <remarks>Track cache data initialization event by overriding this method</remarks>
 public virtual void Swap(CDataSet tc)
 {
     if (tc == null)
     {
         return;
     }
     lock (m_cs)
     {
         List <KeyValuePair <string, System.Data.DataTable> > temp = m_ds;
         m_ds    = tc.m_ds;
         tc.m_ds = temp;
         string s = m_strIp;
         m_strIp          = tc.m_strIp;
         tc.m_strIp       = s;
         s                = m_strHostName;
         m_strHostName    = tc.m_strHostName;
         tc.m_strHostName = s;
         s                = m_strUpdater;
         m_strUpdater     = tc.m_strUpdater;
         tc.m_strUpdater  = s;
         UDB.tagManagementSystem ms = m_ms;
         m_ms    = tc.m_ms;
         tc.m_ms = ms;
     }
 }
Exemple #2
0
 public void Set(string strIp, UDB.tagManagementSystem ms)
 {
     if (strIp == null)
     {
         strIp = "";
     }
     lock (m_cs)
     {
         m_strIp = strIp;
         m_ms    = ms;
     }
 }