SetComplete() public method

public SetComplete ( ) : void
return void
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }