Exemple #1
0
        private static void WriteCompletedCallback(IAsyncResult result)
        {
            if (result.CompletedSynchronously)
            {
                return;
            }

            ProgressWriteAsyncResult thisPtr = (ProgressWriteAsyncResult)result.AsyncState;

            try
            {
                thisPtr.WriteCompleted(result);
            }
            catch (Exception e)
            {
                thisPtr.Complete(false, e);
            }
        }
Exemple #2
0
 public override void EndWrite(IAsyncResult asyncResult)
 {
     ProgressWriteAsyncResult.End(asyncResult);
 }