示例#1
0
 protected override void OnEndClose(IAsyncResult result)
 {
     try
     {
         CloseEntityCollectionAsyncResult.End(result);
     }
     catch (Exception exception)
     {
         this.OnException(exception);
         throw;
     }
 }
示例#2
0
        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);
        }