public string GetPageText(long pageId, TextFormatEnumContract format) { try { var result = m_client.GetString($"book/page/{pageId}/text?format={format}"); return(result); } catch (HttpRequestException e) { if (m_logger.IsErrorEnabled()) { m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e); } throw; } }