Exemplo n.º 1
0
        private void SerialReadingAsyncReturn(IAsyncResult result)
        {
            StartSerialReadingHandle handler = (StartSerialReadingHandle)result.AsyncState;

            try
            {
                handler.EndInvoke(result);
                result.AsyncWaitHandle.Close();
            }
            catch (Exception e)
            {
                ClassCommonSetting.ThrowException(handler, "SerialReading", e);
            }
        }