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); } }
public void Start() { m_workItem = AbortableThreadPool.QueueUserWorkItem(DownloadThreadMethod, 0); }
public void Start() { m_workItem = AbortableThreadPool.QueueUserWorkItem(BatchPostThreadMethod, 0); }