/// <summary>
 /// Gets a list of resource providers.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Csm.IProviderOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all
 /// deployments.
 /// </param>
 /// <returns>
 /// List of resource providers.
 /// </returns>
 public static ProviderListResult List(this IProviderOperations operations, ProviderListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProviderOperations)s).ListAsync(parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets a list of resource providers.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Csm.IProviderOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all
 /// deployments.
 /// </param>
 /// <returns>
 /// List of resource providers.
 /// </returns>
 public static Task<ProviderListResult> ListAsync(this IProviderOperations operations, ProviderListParameters parameters)
 {
     return operations.ListAsync(parameters, CancellationToken.None);
 }