Exemple #1
0
 /// <summary>
 /// Deletes an Azure Search datasource.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946881.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataSourceName'>
 /// The name of the datasource to delete.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static void Delete(this IDataSources operations, string dataSourceName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     operations.DeleteAsync(dataSourceName, searchRequestOptions).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Deletes a data source
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataSourceName'>
 /// </param>
 public static void Delete(this IDataSources operations, string dataSourceName)
 {
     operations.DeleteAsync(dataSourceName).GetAwaiter().GetResult();
 }