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

            // 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);
            }
        }