예제 #1
0
            static void OnWriteCharacters(IAsyncResult result)
            {
                if (result.CompletedSynchronously)
                {
                    return;
                }

                InternalWriteBase64TextAsyncResult thisPtr = (InternalWriteBase64TextAsyncResult)result.AsyncState;
                Exception completionException = null;
                bool      completeSelf        = false;

                try
                {
                    thisPtr.HandleWriteCharacters(result);
                    completeSelf = thisPtr.ContinueWork();
                }
                catch (Exception ex)
                {
                    if (Fx.IsFatal(ex))
                    {
                        throw;
                    }
                    completeSelf        = true;
                    completionException = ex;
                }

                if (completeSelf)
                {
                    thisPtr.Complete(false, completionException);
                }
            }
예제 #2
0
            static bool OnWriteTrailingCharacters(IAsyncResult result)
            {
                InternalWriteBase64TextAsyncResult thisPtr = (InternalWriteBase64TextAsyncResult)result.AsyncState;

                return(thisPtr.HandleWriteTrailingCharacters(result));
            }
예제 #3
0
 void EndInternalWriteBase64Text(IAsyncResult result)
 {
     InternalWriteBase64TextAsyncResult.End(result);
 }