Esempio n. 1
0
        public string GetPageTextFromSearch(long pageId, TextFormatEnumContract format,
                                            SearchPageRequestContract request)
        {
            try
            {
                var result = m_client.PostReturnString($"book/page/{pageId}/text/search?format={format}", request);
                return(result);
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }