예제 #1
0
        async Task <bool> WaitOnHandle(System.Threading.WaitHandle waitHandle)
        {
            var threadID = m_IThreading.GetCurrentThreadID().ToString();

            System.Diagnostics.Debug.WriteLine(threadID + "WaitOnHandle");
            bool bRecieved = waitHandleForDownloadToEnd.WaitOne(TimeSpan.FromMilliseconds(30000));

            threadID = m_IThreading.GetCurrentThreadID().ToString();
            System.Diagnostics.Debug.WriteLine(threadID + "WaitOnHandle Finished");
            return(bRecieved);
        }