/// <summary>
 /// List the web jobs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters.
 /// </param>
 /// <returns>
 /// The list of jobs operation response.
 /// </returns>
 public static WebJobListResponse List(this IWebJobOperations operations, WebJobListParameters parameters)
 {
     try
     {
         return(operations.ListAsync(parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// List the web jobs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters.
 /// </param>
 /// <returns>
 /// The list of jobs operation response.
 /// </returns>
 public static Task <WebJobListResponse> ListAsync(this IWebJobOperations operations, WebJobListParameters parameters)
 {
     return(operations.ListAsync(parameters, CancellationToken.None));
 }