/// <summary>
 /// Retrieve a list of jobs.  (see
 /// http://aka.ms/azureautomationsdk/joboperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IJobOperations.
 /// </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 job operation.
 /// </returns>
 public static Task<JobListResponse> ListAsync(this IJobOperations operations, string automationAccount, JobListParameters parameters)
 {
     return operations.ListAsync(automationAccount, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Retrieve a list of jobs.  (see
 /// http://aka.ms/azureautomationsdk/joboperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IJobOperations.
 /// </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 job operation.
 /// </returns>
 public static JobListResponse List(this IJobOperations operations, string automationAccount, JobListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IJobOperations)s).ListAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }