Example #1
0
 internal static void Uninitialize()
 {
     lock (s_init_lock)
     {
         if (!s_initialized)
         {
             return;
         }
         BackgroundThread.RemoveBackgroundTask(s_bgtask);
         s_bgtask = null;
         CLogUninitialize();
         s_initialized = false;
     }
 }
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (ConnPool.Count != 0)
                {
                    foreach (Network.Client.SynClient client in ConnPool)
                    {
                        client.Dispose();
                    }
                }
                BackgroundThread.RemoveBackgroundTask(m_bgtask);

                this.disposed = true;
            }
        }