Exemplo n.º 1
0
 /// <summary>
 /// Retrieves a datasource definition from Azure Search.
 /// <see href="https://msdn.microsoft.com/library/azure/dn946893.aspx" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataSourceName'>
 /// The name of the datasource to retrieve.
 /// </param>
 /// <param name='searchRequestOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static DataSource Get(this IDataSources operations, string dataSourceName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions))
 {
     return(operations.GetAsync(dataSourceName, searchRequestOptions).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get a data source
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataSourceName'>
 /// </param>
 public static DataSource Get(this IDataSources operations, string dataSourceName)
 {
     return(operations.GetAsync(dataSourceName).GetAwaiter().GetResult());
 }