/// <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; }
private IEnumerator FetchItemsIEnumerator(SearchProvider provider) { yield return(FetchNullItems()); yield return(FetchSearchItems(provider)); }
internal static SearchContext CreateContext(SearchProvider provider, string searchText = "") { return(new SearchContext(new [] { provider }, searchText)); }
public ISearchExpression SetProvider(string name, SearchProvider provider) { m_AdditionalProviders[name] = provider; return(this); }
public FilterDesc(SearchProvider provider, bool enabled) { this.provider = provider; this.isEnabled = enabled; }
public SearchApiSession(SearchProvider provider) { context = new SearchContext(new [] { provider }); }
public static string GetProviderNameWithFilter(SearchProvider provider) { return(string.IsNullOrEmpty(provider.filterId) ? provider.name.displayName : provider.name.displayName + " (" + provider.filterId + ")"); }
public ProviderDesc(NameEntry name, SearchProvider provider) { this.name = name; this.provider = provider; }