Exemplo n.º 1
0
            private void FinishCloseListeners(IAsyncResult result, bool completedSynchronously)
            {
                Exception exception = null;

                try
                {
                    CloseCollectionAsyncResult.End(result);
                }
                catch (Exception exception2)
                {
                    if (Fx.IsFatal(exception2) || completedSynchronously)
                    {
                        throw;
                    }
                    exception = exception2;
                }
                if (exception != null)
                {
                    this.CallComplete(completedSynchronously, exception);
                }
                else
                {
                    this.CloseInput(completedSynchronously);
                }
            }
Exemplo n.º 2
0
            private void FinishCloseChannelDispatchers(IAsyncResult result, bool completedSynchronously)
            {
                Exception exception = null;

                try
                {
                    CloseCollectionAsyncResult.End(result);
                }
                catch (Exception exception2)
                {
                    if (Fx.IsFatal(exception2) || completedSynchronously)
                    {
                        throw;
                    }
                    exception = exception2;
                }
                this.CallComplete(completedSynchronously, exception);
            }