Esempio n. 1
0
        public static Task DisallowQueryingAsync(this ISearchIndexManager manager, string indexName, Action <DisallowQueryingSearchIndexOptions> configureOptions)
        {
            var options = new DisallowQueryingSearchIndexOptions();

            configureOptions(options);

            return(manager.DisallowQueryingAsync(indexName, options));
        }
Esempio n. 2
0
 public static Task DisallowQueryingAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.DisallowQueryingAsync(indexName, DisallowQueryingSearchIndexOptions.Default));
 }