Exemplo n.º 1
0
        public static Task UpsertIndexAsync(this ISearchIndexManager manager, SearchIndex indexDefinition, Action <UpsertSearchIndexOptions> configureOptions)
        {
            var options = new UpsertSearchIndexOptions();

            configureOptions(options);

            return(manager.UpsertIndexAsync(indexDefinition, options));
        }
Exemplo n.º 2
0
 public static Task UpsertIndexAsync(this ISearchIndexManager manager, SearchIndex indexDefinition)
 {
     return(manager.UpsertIndexAsync(indexDefinition, UpsertSearchIndexOptions.Default));
 }