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); } }
static bool OnWriteTrailingCharacters(IAsyncResult result) { InternalWriteBase64TextAsyncResult thisPtr = (InternalWriteBase64TextAsyncResult)result.AsyncState; return(thisPtr.HandleWriteTrailingCharacters(result)); }
void EndInternalWriteBase64Text(IAsyncResult result) { InternalWriteBase64TextAsyncResult.End(result); }