Exemple #1
0
 private static KeyValuePair<string, List<SearchResult>> ProcessSearchableType(ISearch instance, string term)
 {
     try
     {
         return new KeyValuePair<string, List<SearchResult>>(instance.SearchResultMoniker, instance.SimpleQuery(term));
     }
     catch (Exception e)
     {
         Current.Log.Add(e);
         return new KeyValuePair<string, List<SearchResult>>(instance.SearchResultMoniker, new List<SearchResult>());
     }
 }