예제 #1
0
        public static Task <SearchIndex> GetIndexAsync(this ISearchIndexManager manager, string indexName, Action <GetSearchIndexOptions> configureOptions)
        {
            var options = new GetSearchIndexOptions();

            configureOptions(options);

            return(manager.GetIndexAsync(indexName, options));
        }
예제 #2
0
 public static Task <SearchIndex> GetIndexAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.GetIndexAsync(indexName, GetSearchIndexOptions.Default));
 }