예제 #1
0
        protected virtual SearchResponse ExtractResponseFromException(DirectoryOperationException doe)
        {
            if (doe.Response.ResultCode == ResultCode.SizeLimitExceeded && this.SizeLimit > 0)
            {
                logger.Info("Keeping SizeLimitExceeded results, count: {0}", this.SizeLimit);

                this.IsSizeLimitExceeded = true;

                return (SearchResponse)doe.Response;
            }
            else
            {
                logger.Error("Operation exception; rc {0}, msg {1}",
                    doe.Response.ResultCode, doe.Response.ErrorMessage);

                return null;
            }
        }