protected override void OnEndClose(IAsyncResult result) { try { CloseEntityCollectionAsyncResult.End(result); } catch (Exception exception) { this.OnException(exception); throw; } }
protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) { IAsyncResult closeEntityCollectionAsyncResult; try { ClientEntity[] clientEntityArray = new ClientEntity[] { this.messageReceiver }; closeEntityCollectionAsyncResult = new CloseEntityCollectionAsyncResult(clientEntityArray, timeout, callback, state); } catch (Exception exception) { this.OnException(exception); throw; } return(closeEntityCollectionAsyncResult); }