Exemple #1
0
        /// <summary>
        /// Provide general handling of async call back
        /// </summary>
        /// <param name="asyncResult"></param>
        protected static void GeneralCompletionCallback(IAsyncResult asyncResult)
        {
            AsyncResult   resultObj = (AsyncResult)asyncResult;
            ActionHandler d         = (ActionHandler)resultObj.AsyncDelegate;

            try
            {
                d.EndInvoke(asyncResult);
            }
            catch (Exception e)
            {
                WriteErrorException(e);
                throw;
            }
        }