Deployment list operation parameters.
コード例 #1
0
 /// <summary>
 /// Get a list of deployments.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group to filter by. The name is
 /// case insensitive.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all
 /// deployments.
 /// </param>
 /// <returns>
 /// List of deployments.
 /// </returns>
 public static Task<DeploymentListResult> ListAsync(this IDeploymentOperations operations, string resourceGroupName, DeploymentListParameters parameters)
 {
     return operations.ListAsync(resourceGroupName, parameters, CancellationToken.None);
 }
コード例 #2
0
 /// <summary>
 /// Get a list of deployments.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group to filter by. The name is
 /// case insensitive.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all
 /// deployments.
 /// </param>
 /// <returns>
 /// List of deployments.
 /// </returns>
 public static DeploymentListResult List(this IDeploymentOperations operations, string resourceGroupName, DeploymentListParameters parameters)
 {
     return Task.Factory.StartNew((object s) =>
     {
         return ((IDeploymentOperations)s).ListAsync(resourceGroupName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }