Ejemplo n.º 1
0
 /// <summary>
 /// Gets lifetime summary statistics for all of the jobs in the specified
 /// account.
 /// </summary>
 /// <remarks>
 /// Statistics are aggregated across all jobs that have ever existed in the
 /// account, from account creation to the last update time of the statistics.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobGetAllJobsLifetimeStatisticsOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <JobStatistics> GetAllJobsLifetimeStatisticsAsync(this IJobOperations operations, JobGetAllJobsLifetimeStatisticsOptions jobGetAllJobsLifetimeStatisticsOptions = default(JobGetAllJobsLifetimeStatisticsOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetAllJobsLifetimeStatisticsWithHttpMessagesAsync(jobGetAllJobsLifetimeStatisticsOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets lifetime summary statistics for all of the jobs in the specified
 /// account.
 /// </summary>
 /// <remarks>
 /// Statistics are aggregated across all jobs that have ever existed in the
 /// account, from account creation to the last update time of the statistics.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobGetAllJobsLifetimeStatisticsOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobStatistics GetAllJobsLifetimeStatistics(this IJobOperations operations, JobGetAllJobsLifetimeStatisticsOptions jobGetAllJobsLifetimeStatisticsOptions = default(JobGetAllJobsLifetimeStatisticsOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IJobOperations)s).GetAllJobsLifetimeStatisticsAsync(jobGetAllJobsLifetimeStatisticsOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }