コード例 #1
0
 /// <summary>
 /// Lists all indexers available for an Azure Search service.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946883.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IndexerListResult List(this IIndexers operations, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     return(operations.ListAsync(searchRequestOptions).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Retrieves an indexer definition from Azure Search.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946874.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='indexerName'>
 /// The name of the indexer to retrieve.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static Indexer Get(this IIndexers operations, string indexerName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     return(operations.GetAsync(indexerName, searchRequestOptions).GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// Deletes an Azure Search indexer.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946898.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='indexerName'>
 /// The name of the indexer to delete.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IIndexers operations, string indexerName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(indexerName, searchRequestOptions, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #4
0
 /// <summary>
 /// Deletes an Azure Search indexer.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946898.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='indexerName'>
 /// The name of the indexer to delete.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static void Delete(this IIndexers operations, string indexerName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     operations.DeleteAsync(indexerName, searchRequestOptions).GetAwaiter().GetResult();
 }
コード例 #5
0
 /// <summary>
 /// Creates a new Azure Search indexer or updates an indexer if it already
 /// exists.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946899.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='indexerName'>
 /// The name of the indexer to create or update.
 /// </param>
 /// <param name='indexer'>
 /// The definition of the indexer to create or update.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static Indexer CreateOrUpdate(this IIndexers operations, string indexerName, Indexer indexer, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     return(operations.CreateOrUpdateAsync(indexerName, indexer, searchRequestOptions).GetAwaiter().GetResult());
 }
コード例 #6
0
 public RecordBeforeSetIndexerStepTests()
 {
     _indexers = _mockMembers = new MockMembers();
 }