/// <summary>
 /// List the triggered 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 ListTriggered(this IWebJobOperations operations, WebJobListParameters parameters)
 {
     try
     {
         return operations.ListTriggeredAsync(parameters).Result;
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// List the triggered 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> ListTriggeredAsync(this IWebJobOperations operations, WebJobListParameters parameters)
 {
     return operations.ListTriggeredAsync(parameters, CancellationToken.None);
 }
 /// <summary>
 /// List the triggered web jobs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.WebSitesExtensions.IWebJobOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Additional parameters.
 /// </param>
 /// <returns>
 /// The list of jobs operation response.
 /// </returns>
 public static WebJobListResponse ListTriggered(this IWebJobOperations operations, WebJobListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IWebJobOperations)s).ListTriggeredAsync(parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }