コード例 #1
0
 /// <summary>
 /// Retrieve the statistics for the account.  (see
 /// http://aka.ms/azureautomationsdk/statisticsoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IStatisticsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list operation.
 /// </param>
 /// <returns>
 /// The response model for the list statistics operation.
 /// </returns>
 public static StatisticsListResponse List(this IStatisticsOperations operations, string resourceGroupName, string automationAccount, StatisticsListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IStatisticsOperations)s).ListAsync(resourceGroupName, automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Retrieve the statistics for the account.  (see
 /// http://aka.ms/azureautomationsdk/statisticsoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IStatisticsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list operation.
 /// </param>
 /// <returns>
 /// The response model for the list statistics operation.
 /// </returns>
 public static Task<StatisticsListResponse> ListAsync(this IStatisticsOperations operations, string resourceGroupName, string automationAccount, StatisticsListParameters parameters)
 {
     return operations.ListAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None);
 }