private void InternalSendRecordCallback(IAsyncResult ar) { SendRecordAsyncResult sendRecordAsyncResult = ar.AsyncState as SendRecordAsyncResult; try { EndSendRecord(ar); sendRecordAsyncResult.Message.Update(); sendRecordAsyncResult.Message.Reset(); sendRecordAsyncResult.SetComplete(); } catch (Exception complete) { sendRecordAsyncResult.SetComplete(complete); } }
private void InternalSendRecordCallback(IAsyncResult ar) { SendRecordAsyncResult internalResult = ar.AsyncState as SendRecordAsyncResult; try { this.EndSendRecord(ar); // Update session internalResult.Message.Update(); // Reset message contents internalResult.Message.Reset(); internalResult.SetComplete(); } catch (Exception ex) { internalResult.SetComplete(ex); } }