private static void RefreshProviders()
 {
     Providers = TypeCache.GetMethodsWithAttribute <SearchItemProviderAttribute>()
                 .Select(LoadProvider)
                 .Where(provider => provider != null)
                 .ToList();
     s_SearchServiceProvider = SearchServiceProvider.CreateProvider();
 }
Beispiel #2
0
 public static SearchItem CreateItem(string label, object value, string description)
 {
     return(SearchServiceProvider.CreateItem(CreateId(), label, description, value));
 }