public virtual SpellCheckResponse SpellCheck(string text, SpellCheckModeOptions mode = SpellCheckModeOptions.None, string languageCode = "") { return(PolicyService.ExecuteRetryAndCapture400Errors( "SpellCheckService.SpellCheck", ApiKeys.BingSpellCheckRetryInSeconds, () => { var result = SpellCheckRepository.SpellCheck(text, mode, languageCode); return result; }, null)); }
public virtual SpellCheckResponse SpellCheck(string text, SpellCheckModeOptions mode = SpellCheckModeOptions.None, string languageCode = "") { try { var result = SpellCheckRepository.SpellCheck(text, mode, languageCode); return(result); } catch (Exception ex) { Logger.Error("SpellCheckService.SpellCheck failed", this, ex); } return(null); }