Esempio n. 1
0
        private void InvokeCheckWebPreview()
        {
            if (!CanGetPreview())
            {
                return;
            }

            if (m_generateWebPreview)
            {
                if (m_workItem != null)
                {
                    try
                    {
                        AbortableThreadPool.Cancel(m_workItem, true);
                    }
                    catch (Exception _e)
                    {
                        Console.WriteLine(_e.Message);
                    }
                }

                m_workItem = AbortableThreadPool.QueueUserWorkItem(ThreadMethod, 0);
            }
        }
Esempio n. 2
0
 public WorkItemStatus AbortThread()
 {
     return(AbortableThreadPool.Cancel(m_workItem, true));
 }
Esempio n. 3
0
 public void Start()
 {
     m_workItem = AbortableThreadPool.QueueUserWorkItem(DownloadThreadMethod, 0);
 }
 public void Start()
 {
     m_workItem = AbortableThreadPool.QueueUserWorkItem(BatchPostThreadMethod, 0);
 }