private void InternalSendRecordCallback(IAsyncResult ar) { RecordProtocol.SendRecordAsyncResult sendRecordAsyncResult = ar.AsyncState as RecordProtocol.SendRecordAsyncResult; try { this.EndSendRecord(ar); sendRecordAsyncResult.Message.Update(); sendRecordAsyncResult.Message.Reset(); sendRecordAsyncResult.SetComplete(); } catch (Exception complete) { sendRecordAsyncResult.SetComplete(complete); } }
private void InternalSendRecordCallback(IAsyncResult ar) { RecordProtocol.SendRecordAsyncResult asyncState = ar.AsyncState as RecordProtocol.SendRecordAsyncResult; try { this.EndSendRecord(ar); asyncState.Message.Update(); asyncState.Message.Reset(); asyncState.SetComplete(); } catch (Exception ex) { asyncState.SetComplete(ex); } }