Пример #1
0
        /// <summary>
        /// The async email messsage header method.
        /// </summary>
        /// <param name="stateInfo">The thread object state.</param>
        private void AsyncGetEmailMessageThread2(Object stateInfo)
        {
            // Get the email messasge header.
            bool data = _client.GetEmailHeaders(_position, _headerLineCount);

            // If data exits then indicate that the asynchronous
            // operation has completed and send the result to the
            // client, else indicate that the asynchronous operation
            // has failed and did not complete.
            if (data)
            {
                base.Complete(data, true);
            }
            else
            {
                base.Complete(false);
            }
        }