Example #1
0
 /// <summary>
 /// Construct a search item. Minimally a search item need to have a unique id for a given search query.
 /// </summary>
 /// <param name="_id"></param>
 public SearchItem(string _id)
 {
     id       = _id;
     provider = defaultProvider;
 }
Example #2
0
        private IEnumerator FetchItemsIEnumerator(SearchProvider provider)
        {
            yield return(FetchNullItems());

            yield return(FetchSearchItems(provider));
        }
Example #3
0
 internal static SearchContext CreateContext(SearchProvider provider, string searchText = "")
 {
     return(new SearchContext(new [] { provider }, searchText));
 }
Example #4
0
 public ISearchExpression SetProvider(string name, SearchProvider provider)
 {
     m_AdditionalProviders[name] = provider;
     return(this);
 }
Example #5
0
 public FilterDesc(SearchProvider provider, bool enabled)
 {
     this.provider  = provider;
     this.isEnabled = enabled;
 }
Example #6
0
 public SearchApiSession(SearchProvider provider)
 {
     context = new SearchContext(new [] { provider });
 }
Example #7
0
 public static string GetProviderNameWithFilter(SearchProvider provider)
 {
     return(string.IsNullOrEmpty(provider.filterId) ? provider.name.displayName : provider.name.displayName + " (" + provider.filterId + ")");
 }
Example #8
0
 public ProviderDesc(NameEntry name, SearchProvider provider)
 {
     this.name     = name;
     this.provider = provider;
 }