static void OnReplyCompleted(IAsyncResult result) { if (result.CompletedSynchronously) { return; } EnqueueAndSendAsyncResult thisPtr = (EnqueueAndSendAsyncResult)result.AsyncState; Exception completionException = null; bool completeSelf; try { completeSelf = thisPtr.OnReplyCompletedCore(result); } catch (Exception e) { completeSelf = true; completionException = e; } if (completeSelf) { thisPtr.Complete(false, completionException); } }
public void EndEnqueueAndSendMessage(IAsyncResult result) { EnqueueAndSendAsyncResult.End(result); }