コード例 #1
0
 public virtual NewsSearchCategoryResponse CategorySearch(NewsCategoryOptions category)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "NewsSearchService.CategorySearch",
                ApiKeys.BingSearchRetryInSeconds,
                () =>
     {
         var result = NewsSearchRepository.CategorySearch(category);
         return result;
     },
                null));
 }
コード例 #2
0
        public virtual NewsSearchCategoryResponse CategorySearch(NewsCategoryOptions category)
        {
            try {
                var result = NewsSearchRepository.CategorySearch(category);

                return(result);
            } catch (Exception ex) {
                Logger.Error("AutoSuggestService.CategorySearch failed", this, ex);
            }

            return(null);
        }