Beispiel #1
0
 public void Dispose()
 {
     lock (m_Instance)
     {
         m_refCount--;
     }
     if (m_refCount <= 0)
     {
         m_ThreadContext.Exit();
         m_da       = null;
         m_Instance = null;
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     lock (m_Instance)
     {
         m_refCount--;
     }
     if (m_refCount <= 0)
     {
         m_adHelper.Close();
         m_ThreadContext.Exit();
         m_dataAccess = null;
         m_Instance   = null;
     }
 }